Page MenuHomeSoftware Heritage
Paste P1100

pytest failure
ActivePublic

Authored by KShivendu on Jul 26 2021, 5:42 PM.
❯ pytest .
=============================================================== test session starts ================================================================
platform linux -- Python 3.8.10, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
rootdir: /home/shivendu/projects/swh/swh-environment/swh-search, configfile: pytest.ini
plugins: flask-1.2.0, redis-2.1.1, dash-1.21.0, django-test-migrations-1.1.0, xdist-2.3.0, requests-mock-1.9.3, postgresql-2.6.1, asyncio-0.15.1, hypothesis-6.14.2, mock-3.6.1, forked-1.3.0, django-4.4.0, swh.core-0.14.3, swh.journal-0.8.0
collected 0 items / 1 error
====================================================================== ERRORS ======================================================================
__________________________________________________________ ERROR collecting test session ___________________________________________________________
../../../../.virtualenvs/swh/lib/python3.8/site-packages/_pytest/config/__init__.py:570: in _importconftest
mod = import_path(conftestpath, mode=importmode)
../../../../.virtualenvs/swh/lib/python3.8/site-packages/_pytest/pathlib.py:544: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('swh.search.tests.conftest', '/home/shivendu/projects/swh/swh-environment/swh-search/swh/search/tests/conftest.py', PosixPath('/home/shivendu/projects/swh/swh-environment/swh-search/build/lib/swh/search/tests/conftest.py'))
============================================================= short test summary info ==============================================================
ERROR - _pytest.pathlib.ImportPathMismatchError: ('swh.search.tests.conftest', '/home/shivendu/projects/swh/swh-environment/swh-search/swh/searc...
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
================================================================= 1 error in 0.59s =================================================================

Event Timeline

KShivendu created this object in space S1 Public.
KShivendu edited the content of this paste. (Show Details)
KShivendu edited the content of this paste. (Show Details)