Skip to content
Snippets Groups Projects
Commit 51f0e2f8 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Use exec rather than subprocess and add in GW150914

parent 9a8bcc2e
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -2,7 +2,13 @@ import unittest
import os
import shutil
import logging
import subprocess
# Required to run the tests
from past.builtins import execfile
from context import tupak
import numpy as np
tupak.utils.command_line_args.test = True
class Test(unittest.TestCase):
......@@ -35,10 +41,11 @@ class Test(unittest.TestCase):
'examples/injection_examples/marginalized_likelihood.py',
'examples/injection_examples/create_your_own_time_domain_source_model.py',
'examples/other_examples/alternative_likelihoods.py',
'examples/open_data_examples/GW150914.py',
]
for filename in examples:
print("Testing {}".format(filename))
subprocess.check_call(['python', filename, '--test'])
execfile(filename)
if __name__ == '__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