Skip to content
Snippets Groups Projects
Commit e7e6b14f authored by Adam Paquette's avatar Adam Paquette
Browse files

Added asserts to gpf and ipf tests

parent 9302f8b0
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,7 @@ def test_write_ipf(ipf, file):
test_arr = np.hstack(np.array(test_arr))
test_arr = test_arr.reshape(-1, 12)
(truth_arr==test_arr).all()
assert (truth_arr==test_arr).all()
@pytest.mark.parametrize('gpf, file', [(insight_gpf(), 'out.gpf')])
def test_write_gpf(gpf, file):
......@@ -85,7 +85,7 @@ def test_write_gpf(gpf, file):
truth_arr = np.genfromtxt(gpf, skip_header=3)
test_arr = np.genfromtxt(file, skip_header=3)
(truth_arr==test_arr).all()
assert (truth_arr==test_arr).all()
# np.testing.assert_array_almost_equal(truth_arr, test_arr)
......
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