Commit 6500c5e2 authored by Edward Fauchon-Jones's avatar Edward Fauchon-Jones
Browse files

Up existing tests to pass with phase sense spec

parent 633b64ea
......@@ -71,6 +71,7 @@ templateOutput = """# Format 1
- [=] mass-ordering (mass1 >= mass2)
- [=] peak-near-zero (waveform peak is at 0.88M which is less than 10.00M from zero)
- [=] phase-sense ((2,2) phase is decreasing on average)
# Format 2
......@@ -1761,6 +1762,11 @@ class TestPhaselm(TestROMSpline):
("- [WRONG TYPE] {0:s} "
"(<class \'h5py._hl.dataset.Dataset\'>) "
"(Type must be <class \'h5py._hl.group.Group\'>)").format(name))
if name == 'phase_l2_m2':
self.setNamedOutput(
'phase-sense',
('- [INVALID FIELDS] phase-sense '
'(Field dependencies are invalid)'))
(output, returncode) = helper.lvcnrcheck(['-f', '3', self.f.name], returncode=True)
assert output.strip() == self.output
......@@ -1773,6 +1779,11 @@ class TestPhaselm(TestROMSpline):
"(<class \'h5py._hl.group.Group\'>) "
"(Field has subfields [invalid-1, invalid-2] "
"but should have [X, Y, deg, errors, tol])").format(name))
if name == 'phase_l2_m2':
self.setNamedOutput(
'phase-sense',
('- [INVALID FIELDS] phase-sense '
'(Field dependencies are invalid)'))
(output, returncode) = helper.lvcnrcheck(['-f', '3', self.f.name], returncode=True)
assert output.strip() == self.output
......
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