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

Added if __name__ == 'main' clause and removed long tests temporarily from CI

parent 3faa25a9
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -29,9 +29,9 @@ exitcode-jessie:
- coverage run --include=tupak/* -a test/waveform_generator_tests.py
- coverage html
- coverage-badge -o coverage_badge.svg -f
- coverage run --omit=* -a test/example_tests.py
- coverage run --omit=* -a test/noise_realisation_tests.py
- coverage run --omit=* -a test/tests.py
# - coverage run --omit=* -a test/example_tests.py
# - coverage run --omit=* -a test/noise_realisation_tests.py
# - coverage run --omit=* -a test/tests.py
# Make the documentation
- pip install -r docs/requirements.txt
......
......@@ -388,3 +388,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()
\ No newline at end of file
......@@ -125,4 +125,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()
\ No newline at end of file
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