Open hannahbaumann opened 1 year ago
CI is working fine with pytest 7.4 (such as this run), and I just tried 7.4 locally and it worked, so that shouldn't be the problem.
openfe test
command? pytest
for a specific file? For the whole suite? Using --pyargs
?)Hm, that's weird! Here what I did:
openfe test --long
command and that also raises a lot of errors.We don't test against 3.11, so I'd recommend downgrading that to 3.10. I don't recall what we're waiting on before we can add 3.11 to the test matrix; maybe the recent ambertools build allows us to now run on 3.11?
Yeah I think it was OpenFF TK and then by correspondence ambertools. Should be ok to upgrade now.
Awesome, thank you for helping figure this out!
So interestingly py311 is working fine on CI, but I am also about to replicate this 7.4.0 issue on a clean install.
benzene_modifications
fixture?Only tried on developer installs with 7.4.0 + py3.11, I'll see if I can reproduce later.
My issue was with another fixture (not benzene_modifications, but I didn't note down exactly which one).
I created a new conda env from the environment.yml file and got mulitple errors in the test_openmm_equil_rfe_protocols.py, e.g.
file /Users/hannahbaumann/openfe/openfe/tests/protocols/test_openmm_equil_rfe_protocols.py, line 38 def test_append_topology(benzene_complex_system, toluene_complex_system): file /Users/hannahbaumann/openfe/openfe/tests/protocols/conftest.py, line 29 @pytest.fixture def benzene_complex_system(benzene_modifications, T4_protein_component): E fixture 'benzene_modifications' not found
Downgrading pytest to 7.3.1 seems to fix the issue.