Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
use pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Jul 9, 2018
1 parent 8b0c9b4 commit 821c7db
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/test_all.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env python
from pathlib import Path
import pytest
import numpy as np
from numpy.testing import assert_allclose
#
import themisasi as ta
#
Expand All @@ -24,10 +26,10 @@ def test_calread():

cal = ta.loadcal(calfn)

np.testing.assert_allclose(cal['el'][29, 161], 15.458)
np.testing.assert_allclose(cal['az'][29, 161], 1.6255488)
np.testing.assert_allclose(cal.lon, -145.16)
assert_allclose(cal['el'][29, 161], 15.458)
assert_allclose(cal['az'][29, 161], 1.6255488)
assert_allclose(cal.lon, -145.16)


if __name__ == '__main__':
np.testing.run_module_suite()
pytest.main()

0 comments on commit 821c7db

Please sign in to comment.