Skip to content

Instantly share code, notes, and snippets.

@4lm
Created October 7, 2019 11:41
Show Gist options
  • Save 4lm/cb69d423991c601a02b6b92d168fcc45 to your computer and use it in GitHub Desktop.
Save 4lm/cb69d423991c601a02b6b92d168fcc45 to your computer and use it in GitHub Desktop.
Error, running:
- Running: $ DJANGO_SETTINGS_MODULE="oeplatform.settings" python -m pytest
- Results in:
============================================================================== test session starts ==============================================================================
platform linux -- Python 3.7.0, pytest-3.8.0, py-1.6.0, pluggy-0.7.1
rootdir: /home/local/RL-INSTITUT/alexis.michaltsis/projects/oep/oeplatform, inifile:
plugins: remotedata-0.3.0, openfiles-0.3.0, doctestplus-0.1.3, arraydiff-0.2
collected 0 items / 6 errors
==================================================================================== ERRORS =====================================================================================
___________________________________________________________________ ERROR collecting api/tests/test_column.py ___________________________________________________________________
../../../anaconda3/lib/python3.7/site-packages/py/_path/local.py:668: in pyimport
__import__(modname)
api/tests/__init__.py:4: in <module>
from rest_framework.authtoken.models import Token
../../../anaconda3/lib/python3.7/site-packages/rest_framework/authtoken/models.py:9: in <module>
class Token(models.Model):
../../../anaconda3/lib/python3.7/site-packages/django/db/models/base.py:110: in __new__
app_config = apps.get_containing_app_config(module)
../../../anaconda3/lib/python3.7/site-packages/django/apps/registry.py:247: in get_containing_app_config
self.check_apps_ready()
../../../anaconda3/lib/python3.7/site-packages/django/apps/registry.py:125: in check_apps_ready
raise AppRegistryNotReady("Apps aren't loaded yet.")
E django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
________________________________________________________________ ERROR collecting api/tests/test_integration.py _________________________________________________________________
../../../anaconda3/lib/python3.7/site-packages/py/_path/local.py:668: in pyimport
__import__(modname)
api/tests/__init__.py:4: in <module>
from rest_framework.authtoken.models import Token
../../../anaconda3/lib/python3.7/site-packages/rest_framework/authtoken/models.py:9: in <module>
class Token(models.Model):
../../../anaconda3/lib/python3.7/site-packages/django/db/models/base.py:110: in __new__
app_config = apps.get_containing_app_config(module)
../../../anaconda3/lib/python3.7/site-packages/django/apps/registry.py:247: in get_containing_app_config
self.check_apps_ready()
../../../anaconda3/lib/python3.7/site-packages/django/apps/registry.py:125: in check_apps_ready
raise AppRegistryNotReady("Apps aren't loaded yet.")
E django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
____________________________________________________________________ ERROR collecting api/tests/test_rows.py ____________________________________________________________________
../../../anaconda3/lib/python3.7/site-packages/py/_path/local.py:668: in pyimport
__import__(modname)
api/tests/__init__.py:4: in <module>
from rest_framework.authtoken.models import Token
../../../anaconda3/lib/python3.7/site-packages/rest_framework/authtoken/models.py:9: in <module>
class Token(models.Model):
../../../anaconda3/lib/python3.7/site-packages/django/db/models/base.py:110: in __new__
app_config = apps.get_containing_app_config(module)
../../../anaconda3/lib/python3.7/site-packages/django/apps/registry.py:247: in get_containing_app_config
self.check_apps_ready()
../../../anaconda3/lib/python3.7/site-packages/django/apps/registry.py:125: in check_apps_ready
raise AppRegistryNotReady("Apps aren't loaded yet.")
E django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
___________________________________________________________________ ERROR collecting api/tests/test_table.py ____________________________________________________________________
../../../anaconda3/lib/python3.7/site-packages/py/_path/local.py:668: in pyimport
__import__(modname)
api/tests/__init__.py:4: in <module>
from rest_framework.authtoken.models import Token
../../../anaconda3/lib/python3.7/site-packages/rest_framework/authtoken/models.py:9: in <module>
class Token(models.Model):
../../../anaconda3/lib/python3.7/site-packages/django/db/models/base.py:110: in __new__
app_config = apps.get_containing_app_config(module)
../../../anaconda3/lib/python3.7/site-packages/django/apps/registry.py:247: in get_containing_app_config
self.check_apps_ready()
../../../anaconda3/lib/python3.7/site-packages/django/apps/registry.py:125: in check_apps_ready
raise AppRegistryNotReady("Apps aren't loaded yet.")
E django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
__________________________________________________________ ERROR collecting api/tests/test_regression/test_issue270.py __________________________________________________________
../../../anaconda3/lib/python3.7/site-packages/py/_path/local.py:668: in pyimport
__import__(modname)
api/tests/__init__.py:4: in <module>
from rest_framework.authtoken.models import Token
../../../anaconda3/lib/python3.7/site-packages/rest_framework/authtoken/models.py:9: in <module>
class Token(models.Model):
../../../anaconda3/lib/python3.7/site-packages/django/db/models/base.py:110: in __new__
app_config = apps.get_containing_app_config(module)
../../../anaconda3/lib/python3.7/site-packages/django/apps/registry.py:247: in get_containing_app_config
self.check_apps_ready()
../../../anaconda3/lib/python3.7/site-packages/django/apps/registry.py:125: in check_apps_ready
raise AppRegistryNotReady("Apps aren't loaded yet.")
E django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
__________________________________________________________ ERROR collecting api/tests/test_regression/test_issue271.py __________________________________________________________
../../../anaconda3/lib/python3.7/site-packages/py/_path/local.py:668: in pyimport
__import__(modname)
api/tests/__init__.py:4: in <module>
from rest_framework.authtoken.models import Token
../../../anaconda3/lib/python3.7/site-packages/rest_framework/authtoken/models.py:9: in <module>
class Token(models.Model):
../../../anaconda3/lib/python3.7/site-packages/django/db/models/base.py:110: in __new__
app_config = apps.get_containing_app_config(module)
../../../anaconda3/lib/python3.7/site-packages/django/apps/registry.py:247: in get_containing_app_config
self.check_apps_ready()
../../../anaconda3/lib/python3.7/site-packages/django/apps/registry.py:125: in check_apps_ready
raise AppRegistryNotReady("Apps aren't loaded yet.")
E django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
=============================================================================== warnings summary ================================================================================
/home/local/RL-INSTITUT/alexis.michaltsis/anaconda3/lib/python3.7/site-packages/markupsafe/__init__.py:13: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
from collections import Mapping
/home/local/RL-INSTITUT/alexis.michaltsis/anaconda3/lib/python3.7/site-packages/django/db/models/sql/query.py:11: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
from collections import Counter, Iterator, Mapping, OrderedDict
/home/local/RL-INSTITUT/alexis.michaltsis/anaconda3/lib/python3.7/site-packages/django/core/paginator.py:126: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
class Page(collections.Sequence):
-- Docs: https://docs.pytest.org/en/latest/warnings.html
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 6 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
====================================================================== 3 warnings, 6 error in 1.22 seconds ======================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment