Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P1428
(An Untitled Masterwork)
Active
Public
Actions
Authored by
anlambert
on Aug 17 2022, 2:58 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
14:56 $ make test
python3 -m pytest --hypothesis-profile=swh-web-fast ./swh/web/tests
Traceback (most recent call last):
File "/home/anlambert/.virtualenvs/swh/lib/python3.9/site-packages/pytest_django/plugin.py", line 179, in _handle_import_error
yield
File "/home/anlambert/.virtualenvs/swh/lib/python3.9/site-packages/pytest_django/plugin.py", line 351, in pytest_load_initial_conftests
dj_settings.DATABASES
File "/home/anlambert/.virtualenvs/swh/lib/python3.9/site-packages/django/conf/__init__.py", line 79, in __getattr__
self._setup(name)
File "/home/anlambert/.virtualenvs/swh/lib/python3.9/site-packages/django/conf/__init__.py", line 66, in _setup
self._wrapped = Settings(settings_module)
File "/home/anlambert/.virtualenvs/swh/lib/python3.9/site-packages/django/conf/__init__.py", line 157, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "/home/anlambert/.virtualenvs/swh/lib/python3.9/site-packages/_pytest/assertion/rewrite.py", line 168, in exec_module
exec(co, module.__dict__)
File "/home/anlambert/swh/swh-environment/swh-web/swh/web/settings/tests.py", line 13, in <module>
from swh.web.config import get_config
File "/home/anlambert/.virtualenvs/swh/lib/python3.9/site-packages/_pytest/assertion/rewrite.py", line 168, in exec_module
exec(co, module.__dict__)
File "/home/anlambert/swh/swh-environment/swh-web/swh/web/config.py", line 15, in <module>
from swh.vault import get_vault
ImportError: cannot import name 'get_vault' from 'swh.vault' (unknown location)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/anlambert/.virtualenvs/swh/lib/python3.9/site-packages/pytest/__main__.py", line 5, in <module>
raise SystemExit(pytest.console_main())
File "/home/anlambert/.virtualenvs/swh/lib/python3.9/site-packages/_pytest/config/__init__.py", line 187, in console_main
code = main()
File "/home/anlambert/.virtualenvs/swh/lib/python3.9/site-packages/_pytest/config/__init__.py", line 145, in main
config = _prepareconfig(args, plugins)
File "/home/anlambert/.virtualenvs/swh/lib/python3.9/site-packages/_pytest/config/__init__.py", line 324, in _prepareconfig
config = pluginmanager.hook.pytest_cmdline_parse(
File "/home/anlambert/.virtualenvs/swh/lib/python3.9/site-packages/pluggy/_hooks.py", line 265, in __call__
return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
File "/home/anlambert/.virtualenvs/swh/lib/python3.9/site-packages/pluggy/_manager.py", line 80, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/home/anlambert/.virtualenvs/swh/lib/python3.9/site-packages/pluggy/_callers.py", line 55, in _multicall
gen.send(outcome)
File "/home/anlambert/.virtualenvs/swh/lib/python3.9/site-packages/_pytest/helpconfig.py", line 102, in pytest_cmdline_parse
config: Config = outcome.get_result()
File "/home/anlambert/.virtualenvs/swh/lib/python3.9/site-packages/pluggy/_result.py", line 60, in get_result
raise ex[1].with_traceback(ex[2])
File "/home/anlambert/.virtualenvs/swh/lib/python3.9/site-packages/pluggy/_callers.py", line 39, in _multicall
res = hook_impl.function(*args)
File "/home/anlambert/.virtualenvs/swh/lib/python3.9/site-packages/_pytest/config/__init__.py", line 1016, in pytest_cmdline_parse
self.parse(args)
File "/home/anlambert/.virtualenvs/swh/lib/python3.9/site-packages/_pytest/config/__init__.py", line 1304, in parse
self._preparse(args, addopts=addopts)
File "/home/anlambert/.virtualenvs/swh/lib/python3.9/site-packages/_pytest/config/__init__.py", line 1206, in _preparse
self.hook.pytest_load_initial_conftests(
File "/home/anlambert/.virtualenvs/swh/lib/python3.9/site-packages/pluggy/_hooks.py", line 265, in __call__
return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
File "/home/anlambert/.virtualenvs/swh/lib/python3.9/site-packages/pluggy/_manager.py", line 80, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/home/anlambert/.virtualenvs/swh/lib/python3.9/site-packages/pluggy/_callers.py", line 60, in _multicall
return outcome.get_result()
File "/home/anlambert/.virtualenvs/swh/lib/python3.9/site-packages/pluggy/_result.py", line 60, in get_result
raise ex[1].with_traceback(ex[2])
File "/home/anlambert/.virtualenvs/swh/lib/python3.9/site-packages/pluggy/_callers.py", line 39, in _multicall
res = hook_impl.function(*args)
File "/home/anlambert/.virtualenvs/swh/lib/python3.9/site-packages/pytest_django/plugin.py", line 351, in pytest_load_initial_conftests
dj_settings.DATABASES
File "/usr/lib/python3.9/contextlib.py", line 135, in __exit__
self.gen.throw(type, value, traceback)
File "/home/anlambert/.virtualenvs/swh/lib/python3.9/site-packages/pytest_django/plugin.py", line 183, in _handle_import_error
raise ImportError(msg)
ImportError: cannot import name 'get_vault' from 'swh.vault' (unknown location)
Event Timeline
anlambert
created this paste.
Aug 17 2022, 2:58 PM
2022-08-17 14:58:11 (UTC+2)
Log In to Comment