os-climate / python-template-repository

Python template repository requests and skeleton files
Other
0 stars 2 forks source link

Tests fail out of the box #20

Open ModeSevenIndustrialSolutions opened 3 days ago

ModeSevenIndustrialSolutions commented 3 days ago

Tox and pytest both fail after Pyscaffold is run with:

=================================================================== ERRORS ===================================================================
__________________________________________________ ERROR collecting tests/test_skeleton.py ___________________________________________________
ImportError while importing test module '/Users/mwatkins/Repos/modeseven-os-climate/osc-physrisk-financial/tests/test_skeleton.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../.pyenv/versions/3.10.13/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_skeleton.py:3: in <module>
    from osc_physrisk_financial.skeleton import fib, main
E   ModuleNotFoundError: No module named 'osc_physrisk_financial'
ModeSevenIndustrialSolutions commented 3 days ago

Looks like Python versions after 3.9 have issues?