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

Up existing tests to pass with new peak spec

parent b1a3d723
......@@ -70,6 +70,7 @@ templateOutput = """# Format 1
# Format 1 (Interfield)
- [=] mass-ordering (mass1 >= mass2)
- [=] peak-near-zero (waveform peak is at 0.88M which is less than 10.00M from zero)
# Format 2
......@@ -1824,6 +1825,10 @@ class TestAmplm(TestROMSpline):
("- [WRONG TYPE] {0:s} "
"(<class \'h5py._hl.dataset.Dataset\'>) "
"(Type must be <class \'h5py._hl.group.Group\'>)").format(name))
self.setNamedOutput(
'peak-near-zero',
('- [INVALID FIELDS] peak-near-zero '
'(Field dependencies are invalid)'))
(output, returncode) = helper.lvcnrcheck(['-f', '3', self.f.name], returncode=True)
assert output.strip() == self.output
......@@ -1836,6 +1841,10 @@ class TestAmplm(TestROMSpline):
"(<class \'h5py._hl.group.Group\'>) "
"(Field has subfields [invalid-1, invalid-2] "
"but should have [X, Y, deg, errors, tol])").format(name))
self.setNamedOutput(
'peak-near-zero',
('- [INVALID FIELDS] peak-near-zero '
'(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