Skip to content
Snippets Groups Projects
Commit c9e8d528 authored by mads's avatar mads
Browse files

test

parent 1a47d1aa
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -5,5 +5,4 @@ before_script: ...@@ -5,5 +5,4 @@ before_script:
test-3.4: test-3.4:
image: python:3.4 image: python:3.4
script: script:
- pip install -e . - pip install -e .
- pip install pytest \ No newline at end of file
\ No newline at end of file
...@@ -13,7 +13,7 @@ class TestShearFile(unittest.TestCase): ...@@ -13,7 +13,7 @@ class TestShearFile(unittest.TestCase):
def test_shearfile(self): def test_shearfile(self):
f = testfilepath + "tmp_shearfile.dat" f = testfilepath + "tmp_shearfile1.dat"
shear_file.save(f, [-55, 55], [30, 100, 160] , u=np.array([[0.7, 1, 1.3], [0.7, 1, 1.3]]).T) shear_file.save(f, [-55, 55], [30, 100, 160] , u=np.array([[0.7, 1, 1.3], [0.7, 1, 1.3]]).T)
with open(f) as fid: with open(f) as fid:
self.assertEqual(fid.read(), self.assertEqual(fid.read(),
...@@ -43,7 +43,7 @@ class TestShearFile(unittest.TestCase): ...@@ -43,7 +43,7 @@ class TestShearFile(unittest.TestCase):
def test_shearfile2(self): def test_shearfile2(self):
f = testfilepath + "tmp_shearfile.dat" f = testfilepath + "tmp_shearfile2.dat"
shear_file.save(f, [-55, 55], [30, 100, 160] , u=np.array([0.7, 1, 1.3]).T) shear_file.save(f, [-55, 55], [30, 100, 160] , u=np.array([0.7, 1, 1.3]).T)
with open(f) as fid: with open(f) as fid:
self.assertEqual(fid.read(), self.assertEqual(fid.read(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment