arunraja-hub / pharmokinetic-modelling

https://sabs-r3.github.io/software-engineering-projects/01-introduction/index.html
MIT License
0 stars 0 forks source link

Testing #9

Open HenrietteCapel opened 2 years ago

HenrietteCapel commented 2 years ago

Testing

HenrietteCapel commented 2 years ago

Add another test to "test_parameters.txt" including only one compartment but providing parameters for multiple compartments. The code should handle this by not including the compartment. @arunraja-hub

jiayuanz3 commented 2 years ago

Add "test_models.py" which is a unit test structure. Need tests cases to be put in @pytest.mark.parametrize([ ]) to run test cases. 'test_read_docs' checks if all instances in the dataframe are numerical; 'test_rhs' checks if the length of the output is desired; 'test_solver' checks if the ode solver gives correct number of outputs (solver.y should be 1/2/3 dimension depends on C/P1/P2); 'test_solver_for_list' checks if the output represents correct number of doses.

HenrietteCapel commented 2 years ago

Problems with: