py38 create: /tmp/tmp28z5lwb5/pytest-django-4.1.0/.tox/py38 py38 develop-inst: /tmp/tmp28z5lwb5/pytest-django-4.1.0 py38 installed: asgiref==3.3.1,attrs==20.3.0,Django==3.1.3,django-configurations==2.2,iniconfig==1.1.1,packaging==20.4,pluggy==0.13.1,py==1.9.0,pyparsing==2.4.7,pytest==6.1.2,# Editable install with no version control (pytest-django==4.1.0),-e /tmp/tmp28z5lwb5/pytest-django-4.1.0,pytz==2020.4,six==1.15.0,sqlparse==0.4.1,toml==0.10.2 py38 run-test-pre: PYTHONHASHSEED='3170856321' py38 run-test: commands[0] | pytest tests ============================= test session starts ============================== platform linux -- Python 3.8.0, pytest-6.1.2, py-1.9.0, pluggy-0.13.1 cachedir: .tox/py38/.pytest_cache rootdir: /tmp/tmp28z5lwb5/pytest-django-4.1.0, configfile: setup.cfg, testpaths: tests plugins: django-4.1.0 collected 47 items / 5 errors / 42 selected ==================================== ERRORS ==================================== ___________________ ERROR collecting tests/test_database.py ____________________ tests/test_database.py:5: in from pytest_django_test.app.models import Item :991: in _find_and_load ??? :975: in _find_and_load_unlocked ??? :671: in _load_unlocked ??? .tox/py38/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:171: in exec_module exec(co, module.__dict__) pytest_django_test/app/models.py:4: in class Item(models.Model): .tox/py38/lib/python3.8/site-packages/django/db/models/base.py:108: in __new__ app_config = apps.get_containing_app_config(module) .tox/py38/lib/python3.8/site-packages/django/apps/registry.py:253: in get_containing_app_config self.check_apps_ready() .tox/py38/lib/python3.8/site-packages/django/apps/registry.py:135: in check_apps_ready settings.INSTALLED_APPS .tox/py38/lib/python3.8/site-packages/django/conf/__init__.py:83: in __getattr__ self._setup(name) .tox/py38/lib/python3.8/site-packages/django/conf/__init__.py:64: in _setup raise ImproperlyConfigured( E django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings. ___________________ ERROR collecting tests/test_db_setup.py ____________________ tests/test_db_setup.py:3: in from pytest_django_test.db_helpers import ( :991: in _find_and_load ??? :975: in _find_and_load_unlocked ??? :671: in _load_unlocked ??? .tox/py38/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:171: in exec_module exec(co, module.__dict__) pytest_django_test/db_helpers.py:12: in _settings = settings.DATABASES["default"] .tox/py38/lib/python3.8/site-packages/django/conf/__init__.py:83: in __getattr__ self._setup(name) .tox/py38/lib/python3.8/site-packages/django/conf/__init__.py:64: in _setup raise ImproperlyConfigured( E django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings. __________________ ERROR collecting tests/test_environment.py __________________ tests/test_environment.py:4: in from django.contrib.sites.models import Site .tox/py38/lib/python3.8/site-packages/django/contrib/sites/models.py:78: in class Site(models.Model): .tox/py38/lib/python3.8/site-packages/django/db/models/base.py:108: in __new__ app_config = apps.get_containing_app_config(module) .tox/py38/lib/python3.8/site-packages/django/apps/registry.py:253: in get_containing_app_config self.check_apps_ready() .tox/py38/lib/python3.8/site-packages/django/apps/registry.py:135: in check_apps_ready settings.INSTALLED_APPS .tox/py38/lib/python3.8/site-packages/django/conf/__init__.py:83: in __getattr__ self._setup(name) .tox/py38/lib/python3.8/site-packages/django/conf/__init__.py:64: in _setup raise ImproperlyConfigured( E django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings. ___________________ ERROR collecting tests/test_fixtures.py ____________________ tests/test_fixtures.py:20: in from pytest_django_test.app.models import Item :991: in _find_and_load ??? :975: in _find_and_load_unlocked ??? :671: in _load_unlocked ??? .tox/py38/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:171: in exec_module exec(co, module.__dict__) pytest_django_test/app/models.py:4: in class Item(models.Model): .tox/py38/lib/python3.8/site-packages/django/db/models/base.py:108: in __new__ app_config = apps.get_containing_app_config(module) .tox/py38/lib/python3.8/site-packages/django/apps/registry.py:253: in get_containing_app_config self.check_apps_ready() .tox/py38/lib/python3.8/site-packages/django/apps/registry.py:135: in check_apps_ready settings.INSTALLED_APPS .tox/py38/lib/python3.8/site-packages/django/conf/__init__.py:83: in __getattr__ self._setup(name) .tox/py38/lib/python3.8/site-packages/django/conf/__init__.py:64: in _setup raise ImproperlyConfigured( E django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings. ___________________ ERROR collecting tests/test_unittest.py ____________________ tests/test_unittest.py:4: in from pytest_django_test.app.models import Item :991: in _find_and_load ??? :975: in _find_and_load_unlocked ??? :671: in _load_unlocked ??? .tox/py38/lib/python3.8/site-packages/_pytest/assertion/rewrite.py:171: in exec_module exec(co, module.__dict__) pytest_django_test/app/models.py:4: in class Item(models.Model): .tox/py38/lib/python3.8/site-packages/django/db/models/base.py:108: in __new__ app_config = apps.get_containing_app_config(module) .tox/py38/lib/python3.8/site-packages/django/apps/registry.py:253: in get_containing_app_config self.check_apps_ready() .tox/py38/lib/python3.8/site-packages/django/apps/registry.py:135: in check_apps_ready settings.INSTALLED_APPS .tox/py38/lib/python3.8/site-packages/django/conf/__init__.py:83: in __getattr__ self._setup(name) .tox/py38/lib/python3.8/site-packages/django/conf/__init__.py:64: in _setup raise ImproperlyConfigured( E django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings. =============================== warnings summary =============================== .tox/py38/lib/python3.8/site-packages/_pytest/config/__init__.py:1230 /tmp/tmp28z5lwb5/pytest-django-4.1.0/.tox/py38/lib/python3.8/site-packages/_pytest/config/__init__.py:1230: PytestConfigWarning: Unknown config option: django_settings_module self._warn_or_fail_if_strict("Unknown config option: {}\n".format(key)) -- Docs: https://docs.pytest.org/en/stable/warnings.html =========================== short test summary info ============================ ERROR tests/test_database.py - django.core.exceptions.ImproperlyConfigured: R... ERROR tests/test_db_setup.py - django.core.exceptions.ImproperlyConfigured: R... ERROR tests/test_environment.py - django.core.exceptions.ImproperlyConfigured... ERROR tests/test_fixtures.py - django.core.exceptions.ImproperlyConfigured: R... ERROR tests/test_unittest.py - django.core.exceptions.ImproperlyConfigured: R... !!!!!!!!!!!!!!!!!!! Interrupted: 5 errors during collection !!!!!!!!!!!!!!!!!!!! ========================= 1 warning, 5 errors in 5.21s ========================= ERROR: InvocationError for command /tmp/tmp28z5lwb5/pytest-django-4.1.0/.tox/py38/bin/pytest tests (exited with code 2) ___________________________________ summary ____________________________________ ERROR: py38: commands failed write json report at: /tmp/tmp28z5lwb5/pytest-django-4.1.0/result.json Time: 49.5 seconds