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

Basic testing framework #26

Closed noah-de closed 5 years ago

noah-de commented 5 years ago

Here is a little work to make the package installable (making it importable from anywhere on your computer), and testable.

Prior to running your tests, run pip install -e . from the root of this project to put 'farm' into your python path in editable mode.

After that, you should be able to run tests from the root of the project:


test_cropModel (test_model.TestModel) ... ok

----------------------------------------------------------------------
Ran 1 test in 0.002s

OK```

This work closes #19