Skip to content
Snippets Groups Projects
Commit a86c8c84 authored by Moritz Huebner's avatar Moritz Huebner
Browse files

Added test files properly for the coverage

parent 1ec4669d
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -389,3 +389,7 @@ class TestDetector(unittest.TestCase):
self.ifo.data = np.array([2])
self.ifo.power_spectral_density.power_spectral_density_interpolated = MagicMock(return_value=np.array([1]))
self.assertTrue(np.array_equal(self.ifo.whitened_data, np.array([2])))
if __name__ == '__main__':
unittest.main()
......@@ -127,4 +127,8 @@ class TestSampler(unittest.TestCase):
def test_base_run_sampler(self):
sampler_copy = copy.copy(self.sampler)
self.sampler._run_external_sampler()
self.assertDictEqual(sampler_copy.__dict__, self.sampler.__dict__)
\ No newline at end of file
self.assertDictEqual(sampler_copy.__dict__, self.sampler.__dict__)
if __name__ == '__main__':
unittest.main()
......@@ -96,4 +96,4 @@ class TestSourceModelSetter(unittest.TestCase):
if __name__ == '__main__':
unittest.main()
\ No newline at end of file
unittest.main()
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