├── .env.example ├── .gitignore ├── Dockerfile ├── README.md ├── conf └── nginx │ └── djangotesxample.conf ├── docker-compose.yml ├── docker-entrypoint.sh ├── docs └── images │ ├── fixtures_tutorial │ └── tests_class_scope_out.png │ └── pytest_tutorial │ ├── bdd_to_tests.graphml │ └── bdd_to_tests.png ├── poetry.lock ├── pyproject.toml ├── pytest.ini └── src ├── manage.py ├── nodjango_tests ├── README.md ├── __init__.py ├── external_services │ ├── README.md │ └── tests │ │ └── test_mock_requests.py ├── fixtures_tutorial │ ├── README.md │ ├── scopes │ │ ├── test_class_scope.py │ │ ├── test_function_scope.py │ │ └── test_module_scope.py │ └── shared │ │ ├── conftest.py │ │ ├── test_one.py │ │ ├── test_three.py │ │ └── test_two.py ├── infrastructure │ ├── README.md │ └── tests │ │ └── test_code_styles.py └── pyconar2020_tutorial │ ├── README.md │ ├── __init__.py │ ├── prices.py │ ├── services.py │ └── tests │ ├── __init__.py │ ├── conftest.py │ └── test_prices.py ├── scopes_with_db_access ├── README.md ├── __init__.py ├── apps.py ├── test_db_fixture.py ├── test_using_django_testcase.py └── test_using_unsaved_object.py └── tesxample ├── __init__.py ├── asgi.py ├── settings.py ├── urls.py └── wsgi.py /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/.env.example -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/.gitignore -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/Dockerfile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/README.md -------------------------------------------------------------------------------- /conf/nginx/djangotesxample.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/conf/nginx/djangotesxample.conf -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /docker-entrypoint.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/docker-entrypoint.sh -------------------------------------------------------------------------------- /docs/images/fixtures_tutorial/tests_class_scope_out.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/docs/images/fixtures_tutorial/tests_class_scope_out.png -------------------------------------------------------------------------------- /docs/images/pytest_tutorial/bdd_to_tests.graphml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/docs/images/pytest_tutorial/bdd_to_tests.graphml -------------------------------------------------------------------------------- /docs/images/pytest_tutorial/bdd_to_tests.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/docs/images/pytest_tutorial/bdd_to_tests.png -------------------------------------------------------------------------------- /poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/poetry.lock -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/pyproject.toml -------------------------------------------------------------------------------- /pytest.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/pytest.ini -------------------------------------------------------------------------------- /src/manage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/src/manage.py -------------------------------------------------------------------------------- /src/nodjango_tests/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/src/nodjango_tests/README.md -------------------------------------------------------------------------------- /src/nodjango_tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/nodjango_tests/external_services/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/src/nodjango_tests/external_services/README.md -------------------------------------------------------------------------------- /src/nodjango_tests/external_services/tests/test_mock_requests.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/src/nodjango_tests/external_services/tests/test_mock_requests.py -------------------------------------------------------------------------------- /src/nodjango_tests/fixtures_tutorial/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/src/nodjango_tests/fixtures_tutorial/README.md -------------------------------------------------------------------------------- /src/nodjango_tests/fixtures_tutorial/scopes/test_class_scope.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/src/nodjango_tests/fixtures_tutorial/scopes/test_class_scope.py -------------------------------------------------------------------------------- /src/nodjango_tests/fixtures_tutorial/scopes/test_function_scope.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/src/nodjango_tests/fixtures_tutorial/scopes/test_function_scope.py -------------------------------------------------------------------------------- /src/nodjango_tests/fixtures_tutorial/scopes/test_module_scope.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/src/nodjango_tests/fixtures_tutorial/scopes/test_module_scope.py -------------------------------------------------------------------------------- /src/nodjango_tests/fixtures_tutorial/shared/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/src/nodjango_tests/fixtures_tutorial/shared/conftest.py -------------------------------------------------------------------------------- /src/nodjango_tests/fixtures_tutorial/shared/test_one.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/src/nodjango_tests/fixtures_tutorial/shared/test_one.py -------------------------------------------------------------------------------- /src/nodjango_tests/fixtures_tutorial/shared/test_three.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/src/nodjango_tests/fixtures_tutorial/shared/test_three.py -------------------------------------------------------------------------------- /src/nodjango_tests/fixtures_tutorial/shared/test_two.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/src/nodjango_tests/fixtures_tutorial/shared/test_two.py -------------------------------------------------------------------------------- /src/nodjango_tests/infrastructure/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/src/nodjango_tests/infrastructure/README.md -------------------------------------------------------------------------------- /src/nodjango_tests/infrastructure/tests/test_code_styles.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/src/nodjango_tests/infrastructure/tests/test_code_styles.py -------------------------------------------------------------------------------- /src/nodjango_tests/pyconar2020_tutorial/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/src/nodjango_tests/pyconar2020_tutorial/README.md -------------------------------------------------------------------------------- /src/nodjango_tests/pyconar2020_tutorial/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/nodjango_tests/pyconar2020_tutorial/prices.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/src/nodjango_tests/pyconar2020_tutorial/prices.py -------------------------------------------------------------------------------- /src/nodjango_tests/pyconar2020_tutorial/services.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/src/nodjango_tests/pyconar2020_tutorial/services.py -------------------------------------------------------------------------------- /src/nodjango_tests/pyconar2020_tutorial/tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/nodjango_tests/pyconar2020_tutorial/tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/src/nodjango_tests/pyconar2020_tutorial/tests/conftest.py -------------------------------------------------------------------------------- /src/nodjango_tests/pyconar2020_tutorial/tests/test_prices.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/src/nodjango_tests/pyconar2020_tutorial/tests/test_prices.py -------------------------------------------------------------------------------- /src/scopes_with_db_access/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/src/scopes_with_db_access/README.md -------------------------------------------------------------------------------- /src/scopes_with_db_access/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/scopes_with_db_access/apps.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/src/scopes_with_db_access/apps.py -------------------------------------------------------------------------------- /src/scopes_with_db_access/test_db_fixture.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/src/scopes_with_db_access/test_db_fixture.py -------------------------------------------------------------------------------- /src/scopes_with_db_access/test_using_django_testcase.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/src/scopes_with_db_access/test_using_django_testcase.py -------------------------------------------------------------------------------- /src/scopes_with_db_access/test_using_unsaved_object.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/src/scopes_with_db_access/test_using_unsaved_object.py -------------------------------------------------------------------------------- /src/tesxample/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/tesxample/asgi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/src/tesxample/asgi.py -------------------------------------------------------------------------------- /src/tesxample/settings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/src/tesxample/settings.py -------------------------------------------------------------------------------- /src/tesxample/urls.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/src/tesxample/urls.py -------------------------------------------------------------------------------- /src/tesxample/wsgi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Django-Tesxample/learning-pytest/HEAD/src/tesxample/wsgi.py --------------------------------------------------------------------------------