From 765db0fc8149aad4c103244e013fdd128af8d3d2 Mon Sep 17 00:00:00 2001 From: codl Date: Mon, 27 Nov 2017 04:22:03 +0100 Subject: [PATCH] move fixtures.py to standardized location conftest.py --- tests/{fixtures.py => conftest.py} | 3 +-- tests/test_hooks.py | 2 +- tests/test_instance.py | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) rename tests/{fixtures.py => conftest.py} (99%) diff --git a/tests/fixtures.py b/tests/conftest.py similarity index 99% rename from tests/fixtures.py rename to tests/conftest.py index 1b32866..1858ab8 100644 --- a/tests/fixtures.py +++ b/tests/conftest.py @@ -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( diff --git a/tests/test_hooks.py b/tests/test_hooks.py index fe242a6..132021b 100644 --- a/tests/test_hooks.py +++ b/tests/test_hooks.py @@ -1,4 +1,4 @@ -from .fixtures import * +import pytest from datetime import datetime @pytest.mark.vcr() diff --git a/tests/test_instance.py b/tests/test_instance.py index d6f1bed..3ea3cf1 100644 --- a/tests/test_instance.py +++ b/tests/test_instance.py @@ -1,4 +1,3 @@ -from .fixtures import * import pytest @pytest.mark.vcr()