With #12 in mind, here is an initial configuration of pytest. It is just a simple pytest.ini with few options. The comments in that file should ultimately go into the chapter "development and testing" in the documentation).
This configuration allows for pytest to be simply run from the command line, without further specified options, while in the root PyFVTool directory. It runs the notebooks.
A few matplotlib windows are created by the scripts. These should be manually closed for the tests to complete.
Jupyter Notebooks are tested, and your unittests, too. And also other scripts named test_* etc.
I did not try to fix any test failures. This can be done later when there is time. The objective here is just to be able to invoke pytest.
(P.S. I got "3 failed, 3 passed, 4 warnings" with pytest exiting gracefully)
With #12 in mind, here is an initial configuration of pytest. It is just a simple
pytest.ini
with few options. The comments in that file should ultimately go into the chapter "development and testing" in the documentation).This configuration allows for
pytest
to be simply run from the command line, without further specified options, while in the root PyFVTool directory. It runs the notebooks.A few matplotlib windows are created by the scripts. These should be manually closed for the tests to complete.
Jupyter Notebooks are tested, and your
unittests
, too. And also other scripts namedtest_*
etc.I did not try to fix any test failures. This can be done later when there is time. The objective here is just to be able to invoke pytest.
(P.S. I got "3 failed, 3 passed, 4 warnings" with
pytest
exiting gracefully)