Adding integration tests for superevents

parent 158e1a32
Another file for test uploads.
......@@ -388,12 +388,13 @@ if __name__ == "__main__":
# Import other unit tests
from test_labels import TestLabels
from test_voevents import VOEventTestSuite
from test_superevents import TestSuperevents
# Set up arguments
parser = argparse.ArgumentParser(formatter_class=
argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument("type", nargs='?', default='all', type=str,
choices=['all', 'main', 'labels', 'voevents'],
choices=['all', 'main', 'labels', 'superevents', 'voevents'],
help="Set of unit tests to run.")
parser.add_argument("-v", "--verbosity", default=2, type=int,
choices=[0,1,2], help="Verbosity level")
......@@ -404,6 +405,8 @@ if __name__ == "__main__":
suite_dict['main'] = unittest.TestLoader().loadTestsFromTestCase(TestMain)
suite_dict['labels'] = unittest.TestLoader().loadTestsFromTestCase(
TestLabels)
suite_dict['superevents'] = unittest.TestLoader().loadTestsFromTestCase(
TestSuperevents)
suite_dict['voevents'] = VOEventTestSuite()
# Run unit test suites
......
This diff is collapsed.
......@@ -18,7 +18,7 @@
import os
import re
import sys
from setuptools import setup, find_packages
......@@ -34,6 +34,11 @@ def parse_version(path):
raise RuntimeError("Unable to find version string.")
# Required packages for tests
tests_require = []
if sys.version_info.major < 3:
tests_require.append('mock')
setup(
name = "ligo-gracedb",
version = parse_version(os.path.join('ligo', 'gracedb', 'version.py')),
......@@ -49,6 +54,7 @@ setup(
packages = find_packages(),
install_requires = ['six'],
tests_require = tests_require,
package_data = { 'ligo.gracedb.test' : ['data/*', 'test.sh', 'README'] },
entry_points={
......
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