move fixtures.py to standardized location conftest.py
This commit is contained in:
pare
d09d27cdd2
commit
765db0fc81
S'han modificat 3 arxius amb 2 adicions i 4 eliminacions
|
@ -9,14 +9,13 @@ def mastodon():
|
|||
client_secret='__MASTODON_PY_TEST_SECRET',
|
||||
access_token='__MASTODON_PY_TEST_TOKEN')
|
||||
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
def status(mastodon):
|
||||
_status = mastodon.status_post('Toot!')
|
||||
yield _status
|
||||
mastodon.status_delete(_status['id'])
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
def vcr_config():
|
||||
return dict(
|
|
@ -1,4 +1,4 @@
|
|||
from .fixtures import *
|
||||
import pytest
|
||||
from datetime import datetime
|
||||
|
||||
@pytest.mark.vcr()
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
from .fixtures import *
|
||||
import pytest
|
||||
|
||||
@pytest.mark.vcr()
|
||||
|
|
Loading…
Referencia en una nova incidència