Error when integrations tests are generated
Integrations tests currently cannot be run. Pytest returns the following error when running from command line:
====================================================================== test session starts ======================================================================
platform linux -- Python 3.10.11, pytest-7.3.2, pluggy-1.0.0
rootdir: /home/sm_joalo/dev/repos/climix
configfile: pyproject.toml
testpaths: tests
collected 213 items / 1 error
============================================================================ ERRORS =============================================================================
______________________________________________________ ERROR collecting tests/integration/test_indices.py _______________________________________________________
tests/integration/test_indices.py:64: in <module>
generate_test_index_parametrization(),
tests/integration/test_indices.py:45: in generate_test_index_parametrization
config = read_test_configuration()
tests/integration/conftest.py:14: in read_test_configuration
config_string = files("tests.integration").joinpath("configuration.yml").read_text()
../../../.conda/envs/climix/lib/python3.10/importlib/_common.py:22: in files
return from_package(get_package(package))
../../../.conda/envs/climix/lib/python3.10/importlib/_common.py:67: in get_package
if wrap_spec(resolved).submodule_search_locations is None:
../../../.conda/envs/climix/lib/python3.10/importlib/_adapters.py:16: in __getattr__
return getattr(self.spec, name)
E AttributeError: 'NoneType' object has no attribute 'submodule_search_locations'
==================================================================== short test summary info ====================================================================
ERROR tests/integration/test_indices.py - AttributeError: 'NoneType' object has no attribute 'submodule_search_locations'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
======================================================================= 1 error in 24.99s =======================================================================