Skip to content

resinstate tests #43

Closed
Closed
@turbomam

Description

@turbomam

poetry run pytest tests/

The currently activated Python version 3.8.10 is not supported by the project (^3.9).
Trying to find and use a compatible version.
Using python3.9 (3.9.5)
=============================================================================================== test session starts ===============================================================================================
platform linux -- Python 3.9.5, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
rootdir: /home/mark/gitrepos/cm/linkml-model-enrichment
collected 18 items / 1 error / 17 selected

===================================================================================================== ERRORS ======================================================================================================
________________________________________________________________________________ ERROR collecting tests/test_combined_tsv_enum.py _________________________________________________________________________________
ImportError while importing test module '/home/mark/gitrepos/cm/linkml-model-enrichment/tests/test_combined_tsv_enum.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.9/importlib/init.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/test_combined_tsv_enum.py:9: in
from linkml_model_enrichment.annotators.enum_annotator import all_enums_to_ols
E ImportError: cannot import name 'all_enums_to_ols' from 'linkml_model_enrichment.annotators.enum_annotator' (/home/mark/gitrepos/cm/linkml-model-enrichment/linkml_model_enrichment/annotators/enum_annotator.py)
================================================================================================ warnings summary =================================================================================================
../../../.cache/pypoetry/virtualenvs/linkml-model-enrichment-ZIv2sEqv-py3.9/lib/python3.9/site-packages/rdflib_jsonld/init.py:9
/home/mark/.cache/pypoetry/virtualenvs/linkml-model-enrichment-ZIv2sEqv-py3.9/lib/python3.9/site-packages/rdflib_jsonld/init.py:9: DeprecationWarning: The rdflib-jsonld package has been integrated into rdflib as of rdflib==6.0.0. Please remove rdflib-jsonld from your project's dependencies.
warnings.warn(

../../../.cache/pypoetry/virtualenvs/linkml-model-enrichment-ZIv2sEqv-py3.9/lib/python3.9/site-packages/funowl/base/cast_function.py:2
/home/mark/.cache/pypoetry/virtualenvs/linkml-model-enrichment-ZIv2sEqv-py3.9/lib/python3.9/site-packages/funowl/base/cast_function.py:2: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
from collections import Iterable, UserList

-- Docs: https://docs.pytest.org/en/stable/warnings.html
============================================================================================= short test summary info =============================================================================================
ERROR tests/test_combined_tsv_enum.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
========================================================================================== 2 warnings, 1 error in 1.04s ===========================================================================================
mark@nuc-two-ups:~/gitrepos/cm/linkml-model-enrichment$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions