You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test framework for this repository is py.test. It's very easy to write unit tests. Simply add any function that starts with test_ to any script that starts with test_ anywhere in this repository (but preferentially in the tests/ directory) that has a assert statements in it which evaluate to False if something bad happens.
Example
tests/test_math.py
deftest_add():
assert2+2==4
Of course, the more non-trivial and clever the test, the better. Once this has been done, you can run
py.test
from the repo root directory to run the tests. These tests will also be run every time code is pushed.
The text was updated successfully, but these errors were encountered:
The test framework for this repository is
py.test
. It's very easy to write unit tests. Simply add any function that starts withtest_
to any script that starts withtest_
anywhere in this repository (but preferentially in thetests/
directory) that has aassert
statements in it which evaluate toFalse
if something bad happens.Example
tests/test_math.py
Of course, the more non-trivial and clever the test, the better. Once this has been done, you can run
from the repo root directory to run the tests. These tests will also be run every time code is pushed.
The text was updated successfully, but these errors were encountered: