Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

Commit

Permalink
ENH: Tests can be run as script
Browse files Browse the repository at this point in the history
The tests can now be run individually as a script.
  • Loading branch information
hoechenberger committed Jan 26, 2015
1 parent a3c3a99 commit 2c104e0
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pphelper/tests/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,8 @@
# assert np.allclose(fft, fft_expected)
# assert np.allclose(amplitude, amplitude_expected)
# assert np.allclose(phase, phase_expected)


if __name__=='__main__':
import pytest
pytest.main()
5 changes: 5 additions & 0 deletions pphelper/tests/test_racemodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1497,3 +1497,8 @@ def test_gen_cdfs_from_dataframe():
).equals(result_expected)

assert result.index.equals(result_expected.index)


if __name__=='__main__':
import pytest
pytest.main()
5 changes: 5 additions & 0 deletions pphelper/tests/test_sdt.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,8 @@ def test_criterion_strict():
result_expected = 0.82920933172271627
result = criterion(hits, fas, n)
assert np.allclose(result, result_expected)


if __name__=='__main__':
import pytest
pytest.main()
5 changes: 5 additions & 0 deletions pphelper/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,8 @@ def test_get_max_from_list():
result = get_max_from_list(data)

assert result == result_expected


if __name__=='__main__':
import pytest
pytest.main()

0 comments on commit 2c104e0

Please sign in to comment.