lemon-helicopter-7340903/09/2023, 4:53 PM
Somehow pytest-django can’t figure out where
ImportError: No module named 'config' pytest-django could not find a Django project (no manage.py file could be found). You must explicitly add your Django project to the Python path to have it picked up.
is? Any help is appreciated!
happy-kitchen-8948203/09/2023, 5:18 PM
lemon-helicopter-7340903/09/2023, 5:23 PM
module in the pytest-django plugin before it ever gets to the conftest.py, but I could be wrong.
are at the top level of the repo, and
is where I set the
happy-kitchen-8948203/09/2023, 5:39 PM
lemon-helicopter-7340903/09/2023, 5:40 PM
happy-kitchen-8948203/09/2023, 5:42 PM
is useful for loading different settings in different tests, but for now there are also other ways to tell pytest-django about your settings, e.g., in an env var (that you will have to punch through to the test via this option: https://www.pantsbuild.org/docs/reference-subprocess-environment#env_vars
lemon-helicopter-7340903/09/2023, 5:44 PM
happy-kitchen-8948203/09/2023, 6:01 PM
lemon-helicopter-7340903/09/2023, 6:02 PM
and give the
target a name…
happy-kitchen-8948203/09/2023, 10:26 PM