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

Fix tests in CI #105

Closed
holtgrewe opened this issue May 4, 2023 · 3 comments
Closed

Fix tests in CI #105

holtgrewe opened this issue May 4, 2023 · 3 comments

Comments

@holtgrewe
Copy link
Contributor

The tests are currently broken. This looks like a missing dependency (pytest-vcr), some deprection warnings (DeprecationWarning: pkg_resources is deprecated as an API) and some others.

@holtgrewe
Copy link
Contributor Author

Added #106 as this appears to be more involved, can be treated as a separate issue and I don't have much experience here (yet).

@holtgrewe
Copy link
Contributor Author

The issue with the import path mismatch can be resolved by using the -e, --editable flag to pip install.

__________________________________________________________________________________________________________ ERROR collecting src/biocommons/seqrepo/fastadir/bases.py __________________________________________________________________________________________________________
/opt/miniconda3/envs/seqrepo/lib/python3.8/site-packages/_pytest/runner.py:341: in from_call
    result: Optional[TResult] = func()
/opt/miniconda3/envs/seqrepo/lib/python3.8/site-packages/_pytest/runner.py:372: in <lambda>
    call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/opt/miniconda3/envs/seqrepo/lib/python3.8/site-packages/_pytest/doctest.py:547: in collect
    module = import_path(
/opt/miniconda3/envs/seqrepo/lib/python3.8/site-packages/_pytest/pathlib.py:587: in import_path
    raise ImportPathMismatchError(module_name, module_file, path)
E   _pytest.pathlib.ImportPathMismatchError: ('biocommons.seqrepo.fastadir.bases', '/opt/miniconda3/envs/seqrepo/lib/python3.8/site-packages/biocommons/seqrepo/fastadir/bases.py', PosixPath('/home/holtgrem_c/Development/biocommons.seqrepo/src/biocommons/seqrepo/fastadir/bases.py'))
__________________________________________________________________________________________________________ ERROR collecting src/biocommons/seqrepo/fastadir/fabgz.py __________________________________________________________________________________________________________

@holtgrewe
Copy link
Contributor Author

No change to the Python code is necessary for the errors, all can be fixed for #104 and #106 remains for the new style namespace issue.

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