Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportPathMismatchError after recent nextland integration test tweaks #9

Closed
soxofaan opened this issue Jul 13, 2023 · 2 comments
Closed

Comments

@soxofaan
Copy link
Member

Integration tests started to fail with weird error

ImportError while loading conftest '/var/lib/jenkins/workspace/openEO/openeo-integrationtests/nextland/tests/conftest.py'.
_pytest.pathlib.ImportPathMismatchError: ('tests.conftest', '/var/lib/jenkins/workspace/openEO/openeo-integrationtests/openeo-geopyspark-integrationtests/tests/conftest.py', PosixPath('/var/lib/jenkins/workspace/openEO/openeo-integrationtests/nextland/tests/conftest.py'))
@soxofaan
Copy link
Member Author

Caused by recent changes in nextland repo related to #8 and #6

now both openeo-geopyspark-integrationtests and nextland have this in their tree structure:

└── tests
    ├── conftest.py
    ├── __init__.py

and the module reference tests.conftest is now ambiguous for the conftest discovery mechanism: see pytest-dev/pytest#11206

@soxofaan
Copy link
Member Author

for now fixed by eliminating some __init__.py files from nextland test file structure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant