ecohydro / maize-Toff

Repo for modeling analysis of of maize yield variability and tradeoffs between yield and crop failure.
4 stars 2 forks source link

Specify what is being tested in the test message. #31

Closed noah-de closed 4 years ago

noah-de commented 5 years ago

https://github.com/ecohydro/maize-Toff/blob/e1f1c70a0d50c64ad251474ed63161f8d2c1ceed/farm/tests/test_kc.py#L35

noah-de commented 5 years ago

It might be more helpful to omit the message, since assert checks for True in the evaluation of parameters.

or

Write a message to help you (and others) know why the test is there, and to provide insight as to why it may have failed.

noah-de commented 4 years ago

Way to go Natasha!