Commit 5a5b921b authored by Edward Fauchon-Jones's avatar Edward Fauchon-Jones
Browse files

Add phase sense test

parent 6500c5e2
Pipeline #25112 passed with stage
in 2 minutes and 11 seconds
......@@ -1880,3 +1880,21 @@ class TestPeakNearZero(TestInterfield):
(output, returncode) = helper.lvcnrcheck(['-f', '3', self.f.name], returncode=True)
assert output.strip() == self.output
assert returncode == 1
class TestPhaseSense(TestInterfield):
name = 'phase-sense'
def test_invalid_phase_sense(self):
self.setOutput(
('- [INVALID INTERFIELD] phase-sense '
'((2,2) phase is not decreasing on average)'))
nr = h5.File(self.f.name)
nr['phase_l2_m2']['Y'][:] *= -1.0
nr.close()
(output, returncode) = helper.lvcnrcheck(['-f', '3', self.f.name], returncode=True)
assert output.strip() == self.output
assert returncode == 1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment