Open brynpickering opened 1 month ago
I see. This is a restriction by pytest
. To be fair, the case that you ran into in #408 is a bit of a special case. So maybe we don't necessarily need to change anything for most cases and handle the special cases the way you've handled them over there (the second of your two options above)?
What happened?
The change to the test directory introduced in #403 creates an issue when trying to match test filenames with model output filenames. E.g.,
tests/models/supply/test_heat.py
andtests/models/demand/test_heat.py
are not allowed simultaneously. One fix would be to flatten the structure and havetests/models/test_supply_heat.py
andtests/models/test_demand_heat.py
. The other is to repeat the parent directory name in the filename (tests/models/supply/test_heat_supply.py
).Version
1.2.0.dev
Relevant log output