Closed drbenvincent closed 5 years ago
Decision: move forward with pytest
Have made a pretty good start. Picked up pytest
relatively quickly, got some nice parameterised tests going on. Got some good unit-level tests of models and designs going on.
As of now, we have 48 passing, 3 failing tests. We'll deal with this in another issue. For now, we have achieved the objective of laying down a good initial spread of unit tests.
At the moment I've got a strange ad hoc mixture of python scripts which I use to debug (using MS Visual Studio Code) and some unit tests (using
unittest
). The debugging and stepping through code is very handy, but I've not figured out how to do that in MS VS Code yet.And I'm not convinced that
unittest
is the best way forward. It might be thatpytest
is simpler.pytest
vsunittest
and decide. Decision: go for pytest.Tests
Models
calc_decision_variable
method. Will need to set up example dataupdate_beliefs()
Designs
DARC_Designs
using a variety of approaches (ie customisations of the design space