You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
================================================ ERRORS =================================================
_____________________________________ ERROR collecting test_json.py _____________________________________
ImportError while importing test module '/opt/software-discovery-tool/src/tests/test_json.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_json.py:7: in <module>
from config.config import server_host
E ModuleNotFoundError: No module named 'config.config'; 'config' is not a package
____________________________________ ERROR collecting test_render.py ____________________________________
ImportError while importing test module '/opt/software-discovery-tool/src/tests/test_render.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test_render.py:6: in <module>
from config.config import server_host
E ModuleNotFoundError: No module named 'config.config'; 'config' is not a package
=========================================== warnings summary ============================================
../../../../home/divya/.local/lib/python3.8/site-packages/_pytest/cacheprovider.py:428
/home/divya/.local/lib/python3.8/site-packages/_pytest/cacheprovider.py:428: PytestCacheWarning: could not create cache path /opt/software-discovery-tool/src/tests/.pytest_cache/v/cache/nodeids
config.cache.set("cache/nodeids", sorted(self.cached_nodeids))
../../../../home/divya/.local/lib/python3.8/site-packages/_pytest/cacheprovider.py:382
/home/divya/.local/lib/python3.8/site-packages/_pytest/cacheprovider.py:382: PytestCacheWarning: could not create cache path /opt/software-discovery-tool/src/tests/.pytest_cache/v/cache/lastfailed
config.cache.set("cache/lastfailed", self.lastfailed)
../../../../home/divya/.local/lib/python3.8/site-packages/_pytest/stepwise.py:49
/home/divya/.local/lib/python3.8/site-packages/_pytest/stepwise.py:49: PytestCacheWarning: could not create cache path /opt/software-discovery-tool/src/tests/.pytest_cache/v/cache/stepwise
session.config.cache.set(STEPWISE_CACHE_DIR, [])
-- Docs: https://docs.pytest.org/en/stable/warnings.html
======================================== short test summary info ========================================
ERROR test_json.py
ERROR test_render.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
===================================== 3 warnings, 2 errors in 0.17s =====================================
These errors are now solved.
ENV: Both Ubuntu and SUSE
Also the warnings can be let go according to #6681 with pytest -p no:warnings
Will be wonderful if the docs and the fix is made. Once approved, I'll send a PR
The text was updated successfully, but these errors were encountered:
These errors are now solved.
ENV: Both Ubuntu and SUSE
Also the warnings can be let go according to #6681 with
pytest -p no:warnings
Will be wonderful if the docs and the fix is made. Once approved, I'll send a PR
The text was updated successfully, but these errors were encountered: