diff --git a/docs/documentation.md b/docs/documentation.md index b84c7da..421dcb2 100644 --- a/docs/documentation.md +++ b/docs/documentation.md @@ -222,6 +222,7 @@ To understand how a test suite is built, let's have a look at the files runner_authentik.py -> required, defines the Runner subclass (see below) conftest.py -> not required. special file for pytest. is automatically discovered and loaded. convenient place to define fixtures and functions to be used in more than one test routine setup_authentik.py -> not required. can hold setup routine for authentik, has to be registered in runner_authentik.py +fixtures_authentik.py -> not required. holds fixtures that are meant to be imported by other test modules that depend on authentik. # Create a custom Runner diff --git a/recipes/demo/tests_demo/fixtures_demo.py b/recipes/demo/tests_demo/fixtures_demo.py deleted file mode 100644 index c650202..0000000 --- a/recipes/demo/tests_demo/fixtures_demo.py +++ /dev/null @@ -1,26 +0,0 @@ -""" -This file can be used to define fixtures thate are then used by other tests which -depend on [demo]. For this to work - -1. the Runner class of the other test needs to define the depencency as seen - by referencing RunnerDemo in the dependencies list: - -from pytest_abra.tests_demo.runner_demo import RunnerDemo - -class RunnerOther(Runner): - dependencies = [RunnerDemo] - - -2. the specific tests that rely on these fixtures need to import the fixtures. - To globally import for all tests in 'other', the import should be done in conftest: - -in 'conftest.py' in 'test_other' dir: -from pytest_abra.tests_demo.fixtures_demo import demo_fixture -""" - -import pytest - - -@pytest.fixture -def demo_fixture(): - return ""