Created
October 22, 2019 22:18
-
-
Save prescod/0b9da2a23bf43a936d0f2fd7c16f4bc0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
================================================================================================================================== test session starts ================================================================================================================================== | |
platform darwin -- Python 3.7.4, pytest-5.2.0, py-1.8.0, pluggy-0.13.0 | |
Django settings: config.settings.test (from ini file) | |
rootdir: /Users/pprescod/code/MetaCI, inifile: pytest.ini | |
plugins: django-3.5.1, factoryboy-2.0.3, tap-2.3, django-test-plus-1.3.1 | |
collected 84 items | |
metaci/build/tests/test_models.py | |
INTERNALERROR> Traceback (most recent call last): | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/_pytest/main.py", line 191, in wrap_session | |
INTERNALERROR> session.exitstatus = doit(config, session) or 0 | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/_pytest/main.py", line 235, in _main | |
INTERNALERROR> config.hook.pytest_runtestloop(session=session) | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/pluggy/hooks.py", line 286, in __call__ | |
INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs) | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/pluggy/manager.py", line 92, in _hookexec | |
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs) | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/pluggy/manager.py", line 86, in <lambda> | |
INTERNALERROR> firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall | |
INTERNALERROR> return outcome.get_result() | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/pluggy/callers.py", line 80, in get_result | |
INTERNALERROR> raise ex[1].with_traceback(ex[2]) | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall | |
INTERNALERROR> res = hook_impl.function(*args) | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/_pytest/main.py", line 256, in pytest_runtestloop | |
INTERNALERROR> item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/pluggy/hooks.py", line 286, in __call__ | |
INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs) | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/pluggy/manager.py", line 92, in _hookexec | |
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs) | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/pluggy/manager.py", line 86, in <lambda> | |
INTERNALERROR> firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall | |
INTERNALERROR> return outcome.get_result() | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/pluggy/callers.py", line 80, in get_result | |
INTERNALERROR> raise ex[1].with_traceback(ex[2]) | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall | |
INTERNALERROR> res = hook_impl.function(*args) | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/_pytest/runner.py", line 80, in pytest_runtest_protocol | |
INTERNALERROR> runtestprotocol(item, nextitem=nextitem) | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/_pytest/runner.py", line 89, in runtestprotocol | |
INTERNALERROR> rep = call_and_report(item, "setup", log) | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/_pytest/runner.py", line 178, in call_and_report | |
INTERNALERROR> report = hook.pytest_runtest_makereport(item=item, call=call) | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/pluggy/hooks.py", line 286, in __call__ | |
INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs) | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/pluggy/manager.py", line 92, in _hookexec | |
INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs) | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/pluggy/manager.py", line 86, in <lambda> | |
INTERNALERROR> firstresult=hook.spec.opts.get("firstresult") if hook.spec else False, | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall | |
INTERNALERROR> gen.send(outcome) | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/_pytest/skipping.py", line 123, in pytest_runtest_makereport | |
INTERNALERROR> rep = outcome.get_result() | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/pluggy/callers.py", line 80, in get_result | |
INTERNALERROR> raise ex[1].with_traceback(ex[2]) | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall | |
INTERNALERROR> res = hook_impl.function(*args) | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/_pytest/runner.py", line 252, in pytest_runtest_makereport | |
INTERNALERROR> return TestReport.from_item_and_call(item, call) | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/_pytest/reports.py", line 282, in from_item_and_call | |
INTERNALERROR> excinfo, style=item.config.getoption("tbstyle", "auto") | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/_pytest/nodes.py", line 299, in _repr_failure_py | |
INTERNALERROR> truncate_locals=truncate_locals, | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/_pytest/_code/code.py", line 597, in getrepr | |
INTERNALERROR> return fmt.repr_excinfo(self) | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/_pytest/_code/code.py", line 829, in repr_excinfo | |
INTERNALERROR> reprtraceback = self.repr_traceback(excinfo) | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/_pytest/_code/code.py", line 777, in repr_traceback | |
INTERNALERROR> reprentry = self.repr_traceback_entry(entry, einfo) | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/_pytest/_code/code.py", line 736, in repr_traceback_entry | |
INTERNALERROR> reprargs = self.repr_args(entry) if not short else None | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/_pytest/_code/code.py", line 655, in repr_args | |
INTERNALERROR> args.append((argname, saferepr(argvalue))) | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/_pytest/_io/saferepr.py", line 67, in saferepr | |
INTERNALERROR> return SafeRepr(maxsize).repr(obj) | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/_pytest/_io/saferepr.py", line 36, in repr | |
INTERNALERROR> s = super().repr(x) | |
INTERNALERROR> File "/Users/pprescod/.pyenv/versions/3.7.4/lib/python3.7/reprlib.py", line 52, in repr | |
INTERNALERROR> return self.repr1(x, self.maxlevel) | |
INTERNALERROR> File "/Users/pprescod/.pyenv/versions/3.7.4/lib/python3.7/reprlib.py", line 62, in repr1 | |
INTERNALERROR> return self.repr_instance(x, level) | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/_pytest/_io/saferepr.py", line 43, in repr_instance | |
INTERNALERROR> s = repr(x) | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/django/db/models/query.py", line 250, in __repr__ | |
INTERNALERROR> data = list(self[:REPR_OUTPUT_SIZE + 1]) | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/django/db/models/query.py", line 274, in __iter__ | |
INTERNALERROR> self._fetch_all() | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/django/db/models/query.py", line 1242, in _fetch_all | |
INTERNALERROR> self._result_cache = list(self._iterable_class(self)) | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/django/db/models/query.py", line 55, in __iter__ | |
INTERNALERROR> results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size) | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/django/db/models/sql/compiler.py", line 1098, in execute_sql | |
INTERNALERROR> cursor = self.connection.cursor() | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/django/db/backends/base/base.py", line 256, in cursor | |
INTERNALERROR> return self._cursor() | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/django/db/backends/base/base.py", line 233, in _cursor | |
INTERNALERROR> self.ensure_connection() | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/pytest_django/plugin.py", line 772, in _blocking_wrapper | |
INTERNALERROR> "Database access not allowed, " | |
INTERNALERROR> File "/Users/pprescod/code/envs/metaci-py/lib/python3.7/site-packages/_pytest/outcomes.py", line 128, in fail | |
INTERNALERROR> raise Failed(msg=msg, pytrace=pytrace) | |
INTERNALERROR> Failed: Database access not allowed, use the "django_db" mark, or the "db" or "transactional_db" fixtures to enable it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment