Commit 4c6cec0d authored by Jacek Lebioda's avatar Jacek Lebioda
Browse files

Test maintenance

parent c0e45aba
Pipeline #3610 passed with stage
in 34 seconds
...@@ -69,7 +69,7 @@ def validate_input(**kwargs): ...@@ -69,7 +69,7 @@ def validate_input(**kwargs):
'should contain only A, C, T, G, D', 'should contain only A, C, T, G, D',
r'^[AaCcTtGgDd]*$') r'^[AaCcTtGgDd]*$')
whitelist = [True, False, 'true', 'false', 'True', 'False', '1'] whitelist = [True, False, 'true', 'false', 'True', 'False']
if 'includeDatasetResponses' in kwargs and kwargs['includeDatasetResponses'] not in whitelist: if 'includeDatasetResponses' in kwargs and kwargs['includeDatasetResponses'] not in whitelist:
raise APIArgumentError("Invalid {0} ({1}) - {2}".format("includeDatasetResponses", raise APIArgumentError("Invalid {0} ({1}) - {2}".format("includeDatasetResponses",
kwargs['includeDatasetResponses'], kwargs['includeDatasetResponses'],
......
...@@ -97,7 +97,7 @@ class MiddlewareTestCase(MetaBeaconTestCase): ...@@ -97,7 +97,7 @@ class MiddlewareTestCase(MetaBeaconTestCase):
alternateBases=alternate_bases, alternateBases=alternate_bases,
assemblyId='GRCh37') assemblyId='GRCh37')
urls = beacon.helpers.build_urls(self.configuration.DatasetConnections, **request) urls = middleware.build_urls(self.configuration.DatasetConnections, **request)
import urllib.parse import urllib.parse
for url in urls: for url in urls:
......
...@@ -10,6 +10,7 @@ from urllib.error import URLError ...@@ -10,6 +10,7 @@ from urllib.error import URLError
import beacon.helpers import beacon.helpers
from beacon import helpers, middleware, data_types from beacon import helpers, middleware, data_types
from beacon.middleware import build_urls
from tests.test import MetaBeaconTestCase from tests.test import MetaBeaconTestCase
...@@ -67,7 +68,7 @@ class BeaconTestCase(MetaBeaconTestCase): ...@@ -67,7 +68,7 @@ class BeaconTestCase(MetaBeaconTestCase):
def case(**kwargs): def case(**kwargs):
params = data_types.create_beacon_allele_request(**kwargs) params = data_types.create_beacon_allele_request(**kwargs)
urls = beacon.helpers.build_urls(self.configuration.DatasetConnections, **params) urls = build_urls(self.configuration.DatasetConnections, **params)
url = urls[0] url = urls[0]
try: try:
......
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