moved .coveragerc and pytest.ini files to model_data

This commit is contained in:
Khalim Conn-Kowlessar 2023-07-05 13:07:55 +01:00
parent 18953c9f0b
commit d774df4697
4 changed files with 3 additions and 1 deletions

View file

@ -45,5 +45,5 @@ conda activate envName
Then run
```commandline
python -m pytest
pytest --cov-config=model_data/.coveragerc --cov=model_data
```

View file

@ -25,6 +25,8 @@ class TestSapModel:
assert model.final_model is not None
assert model.test_model is not None
# Note - this will potentially be different on different machines so may need to adjust these tests accordingly
# when running in CI/CD
assert (model.fit_error['Median Absolute Error'] - 1.7316860436422203) < 0.00001
assert (model.predict_error['Median Absolute Error'] - 2.85481857667385) < 0.00001
# final model doesn't do that well on this test data