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',
|
client_secret='__MASTODON_PY_TEST_SECRET',
|
||||||
access_token='__MASTODON_PY_TEST_TOKEN')
|
access_token='__MASTODON_PY_TEST_TOKEN')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture()
|
@pytest.fixture()
|
||||||
def status(mastodon):
|
def status(mastodon):
|
||||||
_status = mastodon.status_post('Toot!')
|
_status = mastodon.status_post('Toot!')
|
||||||
yield _status
|
yield _status
|
||||||
mastodon.status_delete(_status['id'])
|
mastodon.status_delete(_status['id'])
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture()
|
@pytest.fixture()
|
||||||
def vcr_config():
|
def vcr_config():
|
||||||
return dict(
|
return dict(
|
|
@ -1,4 +1,4 @@
|
||||||
from .fixtures import *
|
import pytest
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
@pytest.mark.vcr()
|
@pytest.mark.vcr()
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
from .fixtures import *
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
@pytest.mark.vcr()
|
@pytest.mark.vcr()
|
||||||
|
|
Loading…
Referencia en una nova incidència