py37 create: /tmp/tmpbdvvik9x/pytest-django-3.7.0/.tox/py37 py37 develop-inst: /tmp/tmpbdvvik9x/pytest-django-3.7.0 py37 installed: attrs==19.3.0,Django==2.2.7,django-configurations==2.1,importlib-metadata==1.1.0,more-itertools==8.0.0,packaging==19.2,pluggy==0.13.1,py==1.8.0,pyparsing==2.4.5,pytest==5.3.1,pytest-django==3.7.0,pytz==2019.3,six==1.13.0,sqlparse==0.3.0,wcwidth==0.1.7,zipp==0.6.0 py37 run-test-pre: PYTHONHASHSEED='1281693334' py37 run-test: commands[0] | pytest tests ============================= test session starts ============================== platform linux -- Python 3.7.1, pytest-5.3.1, py-1.8.0, pluggy-0.13.1 cachedir: .tox/py37/.pytest_cache rootdir: /tmp/tmpbdvvik9x/pytest-django-3.7.0, inifile: setup.cfg, testpaths: tests plugins: django-3.7.0 collected 40 items / 5 errors / 35 selected ==================================== ERRORS ==================================== ___________________ ERROR collecting tests/test_database.py ____________________ tests/test_database.py:7: in from pytest_django_test.app.models import Item :983: in _find_and_load ??? :967: in _find_and_load_unlocked ??? :677: in _load_unlocked ??? .tox/py37/lib/python3.7/site-packages/_pytest/assertion/rewrite.py:143: in exec_module exec(co, module.__dict__) pytest_django_test/app/models.py:4: in class Item(models.Model): .tox/py37/lib/python3.7/site-packages/django/db/models/base.py:103: in __new__ app_config = apps.get_containing_app_config(module) .tox/py37/lib/python3.7/site-packages/django/apps/registry.py:252: in get_containing_app_config self.check_apps_ready() .tox/py37/lib/python3.7/site-packages/django/apps/registry.py:134: in check_apps_ready settings.INSTALLED_APPS .tox/py37/lib/python3.7/site-packages/django/conf/__init__.py:79: in __getattr__ self._setup(name) .tox/py37/lib/python3.7/site-packages/django/conf/__init__.py:64: in _setup % (desc, ENVIRONMENT_VARIABLE)) 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:4: in from pytest_django_test.db_helpers import ( :983: in _find_and_load ??? :967: in _find_and_load_unlocked ??? :677: in _load_unlocked ??? .tox/py37/lib/python3.7/site-packages/_pytest/assertion/rewrite.py:143: in exec_module exec(co, module.__dict__) pytest_django_test/db_helpers.py:12: in _settings = settings.DATABASES["default"] .tox/py37/lib/python3.7/site-packages/django/conf/__init__.py:79: in __getattr__ self._setup(name) .tox/py37/lib/python3.7/site-packages/django/conf/__init__.py:64: in _setup % (desc, ENVIRONMENT_VARIABLE)) 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:6: in from django.contrib.sites.models import Site .tox/py37/lib/python3.7/site-packages/django/contrib/sites/models.py:78: in class Site(models.Model): .tox/py37/lib/python3.7/site-packages/django/db/models/base.py:103: in __new__ app_config = apps.get_containing_app_config(module) .tox/py37/lib/python3.7/site-packages/django/apps/registry.py:252: in get_containing_app_config self.check_apps_ready() .tox/py37/lib/python3.7/site-packages/django/apps/registry.py:134: in check_apps_ready settings.INSTALLED_APPS .tox/py37/lib/python3.7/site-packages/django/conf/__init__.py:79: in __getattr__ self._setup(name) .tox/py37/lib/python3.7/site-packages/django/conf/__init__.py:64: in _setup % (desc, ENVIRONMENT_VARIABLE)) 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:21: in from pytest_django_test.app.models import Item :983: in _find_and_load ??? :967: in _find_and_load_unlocked ??? :677: in _load_unlocked ??? .tox/py37/lib/python3.7/site-packages/_pytest/assertion/rewrite.py:143: in exec_module exec(co, module.__dict__) pytest_django_test/app/models.py:4: in class Item(models.Model): .tox/py37/lib/python3.7/site-packages/django/db/models/base.py:103: in __new__ app_config = apps.get_containing_app_config(module) .tox/py37/lib/python3.7/site-packages/django/apps/registry.py:252: in get_containing_app_config self.check_apps_ready() .tox/py37/lib/python3.7/site-packages/django/apps/registry.py:134: in check_apps_ready settings.INSTALLED_APPS .tox/py37/lib/python3.7/site-packages/django/conf/__init__.py:79: in __getattr__ self._setup(name) .tox/py37/lib/python3.7/site-packages/django/conf/__init__.py:64: in _setup % (desc, ENVIRONMENT_VARIABLE)) 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:5: in from pytest_django_test.app.models import Item :983: in _find_and_load ??? :967: in _find_and_load_unlocked ??? :677: in _load_unlocked ??? .tox/py37/lib/python3.7/site-packages/_pytest/assertion/rewrite.py:143: in exec_module exec(co, module.__dict__) pytest_django_test/app/models.py:4: in class Item(models.Model): .tox/py37/lib/python3.7/site-packages/django/db/models/base.py:103: in __new__ app_config = apps.get_containing_app_config(module) .tox/py37/lib/python3.7/site-packages/django/apps/registry.py:252: in get_containing_app_config self.check_apps_ready() .tox/py37/lib/python3.7/site-packages/django/apps/registry.py:134: in check_apps_ready settings.INSTALLED_APPS .tox/py37/lib/python3.7/site-packages/django/conf/__init__.py:79: in __getattr__ self._setup(name) .tox/py37/lib/python3.7/site-packages/django/conf/__init__.py:64: in _setup % (desc, ENVIRONMENT_VARIABLE)) 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. =========================== 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 !!!!!!!!!!!!!!!!!!!! ============================== 5 errors in 6.39s =============================== ERROR: InvocationError for command /tmp/tmpbdvvik9x/pytest-django-3.7.0/.tox/py37/bin/pytest tests (exited with code 2) ___________________________________ summary ____________________________________ ERROR: py37: commands failed write json report at: /tmp/tmpbdvvik9x/pytest-django-3.7.0/result.json Time: 74.4 seconds