paul@amok:~/src/authentic$ tox -e py3-coverage-dj111-authentic-sqlite -- tests/test_api.py
py3-coverage-dj111-authentic-sqlite develop-inst-noop: /home/paul/src/authentic
py3-coverage-dj111-authentic-sqlite installed: asn1crypto==0.24.0,astroid==2.1.0,atomicwrites==1.2.1,attrs==18.2.0,-e git://repos.entrouvert.org/authentic.git@9244263f890f06440ab54aa04a63ebe42cbfb952#egg=authentic2,beautifulsoup4==4.7.1,certifi==2018.11.29,cffi==1.11.5,chardet==3.0.4,coverage==4.5.2,cryptography==2.5,cssselect==1.0.3,defusedxml==0.5.0,diff-match-patch==20181111,Django==1.11.18,django-appconf==1.0.2,django-filter==1.1.0,django-import-export==1.2.0,django-jsonfield==1.0.1,django-mellon==1.2.38,django-model-utils==3.1.2,Django-Select2==5.11.1,django-tables==0.2,django-tables2==1.21.2,django-webtest==1.9.2,djangorestframework==3.4.7,dnspython==1.16.0,et-xmlfile==1.0.1,freezegun==0.3.11,gadjo==0.59,httmock==1.3.0,idna==2.8,isodate==0.6.0,isort==4.3.4,jdcal==1.4,jwcrypto==0.6.0,lazy-object-proxy==1.3.1,ldaptools==0.15.1+gd879e41,lxml==4.3.0,Markdown==2.6.11,mccabe==0.6.1,mock==2.0.0,more-itertools==5.0.0,odfpy==1.4.0,openpyxl==2.5.14,pbr==5.1.2,Pillow==5.4.1,pkg-resources==0.0.0,pluggy==0.8.1,py==1.7.0,pyasn1==0.4.5,pyasn1-modules==0.2.4,pycparser==2.19,pycrypto==2.6.1,pylint==2.2.2,pylint-django==0.11.1,pylint-plugin-utils==0.4,pyquery==1.4.0,pytest==4.2.0,pytest-cov==2.6.1,pytest-django==3.4.5,pytest-freezegun==0.3.0.post1,pytest-random==0.2,python-dateutil==2.7.5,python-ldap==3.1.0,pytz==2018.9,PyYAML==3.13,requests==2.21.0,six==1.12.0,soupsieve==1.7.3,tablib==0.12.1,unicodecsv==0.14.1,urllib3==1.24.1,waitress==1.2.1,WebOb==1.8.5,WebTest==2.0.32,wrapt==1.11.1,xlrd==1.2.0,xlwt==1.3.0,XStatic==1.0.2,XStatic-Font-Awesome==4.7.0.0,XStatic-jQuery==3.3.1.1,XStatic-jquery-ui==1.11.0.1,XStatic-OpenSans==1.0.0,XStatic-Select2==4.0.3.1
py3-coverage-dj111-authentic-sqlite run-test-pre: PYTHONHASHSEED='2074248952'
py3-coverage-dj111-authentic-sqlite runtests: commands[0] | ./getlasso3.sh
'/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/lasso.py' -> '/usr/lib/python3/dist-packages/lasso.py'
'/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/_lasso.cpython-36m-x86_64-linux-gnu.so' -> '/usr/lib/python3/dist-packages/_lasso.cpython-36m-x86_64-linux-gnu.so'
'/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/_lasso.cpython-37m-x86_64-linux-gnu.so' -> '/usr/lib/python3/dist-packages/_lasso.cpython-37m-x86_64-linux-gnu.so'
py3-coverage-dj111-authentic-sqlite runtests: commands[1] | py.test --junitxml=junit-py3-coverage-dj111-authentic-sqlite.xml --cov-report xml --cov-report html --cov=src/ --cov-config .coveragerc tests/test_api.py
===================================================================================== test session starts =====================================================================================
platform linux -- Python 3.7.2, pytest-4.2.0, py-1.7.0, pluggy-0.8.1
cachedir: /tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/.pytest_cache
Django settings: authentic2.settings (from environment variable)
rootdir: /home/paul/src/authentic, inifile:
plugins: random-0.2, freezegun-0.3.0.post1, django-3.4.5, cov-2.6.1, django-webtest-1.9.2
collected 154 items                                                                                                                                                                           

tests/test_api.py 
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/_pytest/main.py", line 203, in wrap_session
INTERNALERROR>     session.exitstatus = doit(config, session) or 0
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/_pytest/main.py", line 243, in _main
INTERNALERROR>     config.hook.pytest_runtestloop(session=session)
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__
INTERNALERROR>     return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/pluggy/manager.py", line 68, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/pluggy/manager.py", line 62, in <lambda>
INTERNALERROR>     firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall
INTERNALERROR>     gen.send(outcome)
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/pluggy/callers.py", line 80, in get_result
INTERNALERROR>     raise ex[1].with_traceback(ex[2])
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/_pytest/main.py", line 264, in pytest_runtestloop
INTERNALERROR>     item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__
INTERNALERROR>     return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/pluggy/manager.py", line 68, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/pluggy/manager.py", line 62, in <lambda>
INTERNALERROR>     firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall
INTERNALERROR>     return outcome.get_result()
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/pluggy/callers.py", line 80, in get_result
INTERNALERROR>     raise ex[1].with_traceback(ex[2])
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/_pytest/runner.py", line 78, in pytest_runtest_protocol
INTERNALERROR>     runtestprotocol(item, nextitem=nextitem)
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/_pytest/runner.py", line 87, in runtestprotocol
INTERNALERROR>     rep = call_and_report(item, "setup", log)
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/_pytest/runner.py", line 175, in call_and_report
INTERNALERROR>     report = hook.pytest_runtest_makereport(item=item, call=call)
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/pluggy/hooks.py", line 284, in __call__
INTERNALERROR>     return self._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/pluggy/manager.py", line 68, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook, methods, kwargs)
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/pluggy/manager.py", line 62, in <lambda>
INTERNALERROR>     firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall
INTERNALERROR>     gen.send(outcome)
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/_pytest/skipping.py", line 127, in pytest_runtest_makereport
INTERNALERROR>     rep = outcome.get_result()
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/pluggy/callers.py", line 80, in get_result
INTERNALERROR>     raise ex[1].with_traceback(ex[2])
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/_pytest/runner.py", line 271, in pytest_runtest_makereport
INTERNALERROR>     excinfo, style=item.config.option.tbstyle
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/_pytest/nodes.py", line 284, in _repr_failure_py
INTERNALERROR>     truncate_locals=truncate_locals,
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/_pytest/_code/code.py", line 556, in getrepr
INTERNALERROR>     return fmt.repr_excinfo(self)
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/_pytest/_code/code.py", line 806, in repr_excinfo
INTERNALERROR>     reprtraceback = self.repr_traceback(excinfo)
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/_pytest/_code/code.py", line 751, in repr_traceback
INTERNALERROR>     reprentry = self.repr_traceback_entry(entry, einfo)
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/_pytest/_code/code.py", line 710, in repr_traceback_entry
INTERNALERROR>     reprargs = self.repr_args(entry) if not short else None
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/_pytest/_code/code.py", line 628, in repr_args
INTERNALERROR>     args.append((argname, self._saferepr(argvalue)))
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/_pytest/_code/code.py", line 622, in _saferepr
INTERNALERROR>     return saferepr(obj)
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/_pytest/_io/saferepr.py", line 72, in saferepr
INTERNALERROR>     return srepr.repr(obj)
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/_pytest/_io/saferepr.py", line 12, in repr
INTERNALERROR>     return self._callhelper(reprlib.Repr.repr, self, x)
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/_pytest/_io/saferepr.py", line 38, in _callhelper
INTERNALERROR>     s = call(x, *args)
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/reprlib.py", line 52, in repr
INTERNALERROR>     return self.repr1(x, self.maxlevel)
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/reprlib.py", line 62, in repr1
INTERNALERROR>     return self.repr_instance(x, level)
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/_pytest/_io/saferepr.py", line 33, in repr_instance
INTERNALERROR>     return self._callhelper(repr, x)
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/_pytest/_io/saferepr.py", line 38, in _callhelper
INTERNALERROR>     s = call(x, *args)
INTERNALERROR>   File "/home/paul/src/authentic/src/django_rbac/models.py", line 51, in __repr__
INTERNALERROR>     return '<{0} {1} {2}>'.format(self.__class__.__name__, repr(self.slug),
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/django/db/models/query_utils.py", line 116, in __get__
INTERNALERROR>     instance.refresh_from_db(fields=[self.field_name])
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/django/db/models/base.py", line 697, in refresh_from_db
INTERNALERROR>     db_instance = db_instance_qs.get()
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/django/db/models/query.py", line 374, in get
INTERNALERROR>     num = len(clone)
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/django/db/models/query.py", line 232, in __len__
INTERNALERROR>     self._fetch_all()
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/django/db/models/query.py", line 1121, in _fetch_all
INTERNALERROR>     self._result_cache = list(self._iterable_class(self))
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/django/db/models/query.py", line 53, in __iter__
INTERNALERROR>     results = compiler.execute_sql(chunked_fetch=self.chunked_fetch)
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/django/db/models/sql/compiler.py", line 887, in execute_sql
INTERNALERROR>     cursor = self.connection.cursor()
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/django/db/backends/base/base.py", line 254, in cursor
INTERNALERROR>     return self._cursor()
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/django/db/backends/base/base.py", line 229, in _cursor
INTERNALERROR>     self.ensure_connection()
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/pytest_django/plugin.py", line 739, in _blocking_wrapper
INTERNALERROR>     "Database access not allowed, "
INTERNALERROR>   File "/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/lib/python3.7/site-packages/_pytest/outcomes.py", line 113, 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.

================================================================================ 89 warnings in 14.88 seconds =================================================================================
ERROR: InvocationError for command '/tmp/tox-paul/authentic/py3-coverage-dj111-authentic-sqlite/bin/py.test --junitxml=junit-py3-coverage-dj111-authentic-sqlite.xml --cov-report xml --cov-report html --cov=src/ --cov-config .coveragerc tests/test_api.py' (exited with code 3)
___________________________________________________________________________________________ summary ___________________________________________________________________________________________
ERROR:   py3-coverage-dj111-authentic-sqlite: commands failed