Commit f6bc4fae authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

Fixing tests

parent 59c3e31b
......@@ -41,7 +41,7 @@ class TestBooleanETL:
def test_extract_raises_readable_if_not_200(self):
with responses.RequestsMock() as response:
response.add(response.GET,
'http://foo.bar/studies/records/findCustom',
'http://foo.bar/dataSets/records/findCustom',
body='{}',
status=400,
content_type='application/json')
......@@ -54,7 +54,7 @@ class TestBooleanETL:
def test_extract_raises_readable_if_not_json(self):
with responses.RequestsMock() as response:
response.add(response.GET,
'http://foo.bar/studies/records/findCustom',
'http://foo.bar/dataSets/records/findCustom',
body='abc{//}',
status=200,
content_type='application/json')
......@@ -68,7 +68,7 @@ class TestBooleanETL:
body = json.dumps([{'a': True, '_id': {'$oid': '12345'}}])
with responses.RequestsMock() as response:
response.add(response.GET,
'http://foo.bar/studies/records/findCustom',
'http://foo.bar/dataSets/records/findCustom',
body=body,
status=200,
content_type='application/json')
......@@ -81,7 +81,7 @@ class TestBooleanETL:
body = json.dumps([{'a': True, '_id': {'$oid': '12345'}}])
with responses.RequestsMock() as response:
response.add(response.GET,
'http://foo.bar/studies/records/findCustom',
'http://foo.bar/dataSets/records/findCustom',
body=body,
status=200,
content_type='application/json')
......
......@@ -41,7 +41,7 @@ class TestDoubleETL:
def test_extract_raises_readable_if_not_200(self):
with responses.RequestsMock() as response:
response.add(response.GET,
'http://foo.bar/studies/records/findCustom',
'http://foo.bar/dataSets/records/findCustom',
body='{}',
status=400,
content_type='application/json')
......@@ -54,7 +54,7 @@ class TestDoubleETL:
def test_extract_raises_readable_if_not_json(self):
with responses.RequestsMock() as response:
response.add(response.GET,
'http://foo.bar/studies/records/findCustom',
'http://foo.bar/dataSets/records/findCustom',
body='abc{//}',
status=200,
content_type='application/json')
......@@ -68,7 +68,7 @@ class TestDoubleETL:
body = json.dumps([{'a': 1.1, '_id': {'$oid': '12345'}}])
with responses.RequestsMock() as response:
response.add(response.GET,
'http://foo.bar/studies/records/findCustom',
'http://foo.bar/dataSets/records/findCustom',
body=body,
status=200,
content_type='application/json')
......@@ -81,7 +81,7 @@ class TestDoubleETL:
body = json.dumps([{'a': 1.1, '_id': {'$oid': '12345'}}])
with responses.RequestsMock() as response:
response.add(response.GET,
'http://foo.bar/studies/records/findCustom',
'http://foo.bar/dataSets/records/findCustom',
body=body,
status=200,
content_type='application/json')
......
......@@ -42,7 +42,7 @@ class TestDoubleETL:
def test_extract_raises_readable_if_not_200(self):
with responses.RequestsMock() as response:
response.add(response.GET,
'http://foo.bar/studies/records/findCustom',
'http://foo.bar/dataSets/records/findCustom',
body='{}',
status=400,
content_type='application/json')
......@@ -55,7 +55,7 @@ class TestDoubleETL:
def test_extract_raises_readable_if_not_json(self):
with responses.RequestsMock() as response:
response.add(response.GET,
'http://foo.bar/studies/records/findCustom',
'http://foo.bar/dataSets/records/findCustom',
body='abc{//}',
status=200,
content_type='application/json')
......@@ -69,7 +69,7 @@ class TestDoubleETL:
body = json.dumps([{'a': 1.1, '_id': {'$oid': '12345'}}])
with responses.RequestsMock() as response:
response.add(response.GET,
'http://foo.bar/studies/records/findCustom',
'http://foo.bar/dataSets/records/findCustom',
body=body,
status=200,
content_type='application/json')
......@@ -82,7 +82,7 @@ class TestDoubleETL:
body = json.dumps([{'a': 1.1, '_id': {'$oid': '12345'}}])
with responses.RequestsMock() as response:
response.add(response.GET,
'http://foo.bar/studies/records/findCustom',
'http://foo.bar/dataSets/records/findCustom',
body=body,
status=200,
content_type='application/json')
......
......@@ -42,7 +42,7 @@ class TestEnumETL:
def test_extract_raises_readable_if_not_200(self):
with responses.RequestsMock() as response:
response.add(response.GET,
'http://foo.bar/studies/records/findCustom',
'http://foo.bar/dataSets/records/findCustom',
body='{}',
status=400,
content_type='application/json')
......@@ -55,7 +55,7 @@ class TestEnumETL:
def test_extract_raises_readable_if_not_json(self):
with responses.RequestsMock() as response:
response.add(response.GET,
'http://foo.bar/studies/records/findCustom',
'http://foo.bar/dataSets/records/findCustom',
body='abc{//}',
status=200,
content_type='application/json')
......@@ -69,7 +69,7 @@ class TestEnumETL:
body = json.dumps([{'foo': 0, '_id': {'$oid': '12345'}}])
with responses.RequestsMock() as response:
response.add(response.GET,
'http://foo.bar/studies/records/findCustom',
'http://foo.bar/dataSets/records/findCustom',
body=body,
status=200,
content_type='application/json')
......@@ -82,7 +82,7 @@ class TestEnumETL:
body = json.dumps([{'foo': 0, '_id': {'$oid': '12345'}}])
with responses.RequestsMock() as response:
response.add(response.GET,
'http://foo.bar/studies/records/findCustom',
'http://foo.bar/dataSets/records/findCustom',
body=body,
status=200,
content_type='application/json')
......
......@@ -41,7 +41,7 @@ class TestIntegerETL:
def test_extract_raises_readable_if_not_200(self):
with responses.RequestsMock() as response:
response.add(response.GET,
'http://foo.bar/studies/records/findCustom',
'http://foo.bar/dataSets/records/findCustom',
body='{}',
status=400,
content_type='application/json')
......@@ -54,7 +54,7 @@ class TestIntegerETL:
def test_extract_raises_readable_if_not_json(self):
with responses.RequestsMock() as response:
response.add(response.GET,
'http://foo.bar/studies/records/findCustom',
'http://foo.bar/dataSets/records/findCustom',
body='abc{//}',
status=200,
content_type='application/json')
......@@ -68,7 +68,7 @@ class TestIntegerETL:
body = json.dumps([{'a': 1, '_id': {'$oid': '12345'}}])
with responses.RequestsMock() as response:
response.add(response.GET,
'http://foo.bar/studies/records/findCustom',
'http://foo.bar/dataSets/records/findCustom',
body=body,
status=200,
content_type='application/json')
......@@ -81,7 +81,7 @@ class TestIntegerETL:
body = json.dumps([{'a': 1, '_id': {'$oid': '12345'}}])
with responses.RequestsMock() as response:
response.add(response.GET,
'http://foo.bar/studies/records/findCustom',
'http://foo.bar/dataSets/records/findCustom',
body=body,
status=200,
content_type='application/json')
......
......@@ -41,7 +41,7 @@ class TestStringETL:
def test_extract_raises_readable_if_not_200(self):
with responses.RequestsMock() as response:
response.add(response.GET,
'http://foo.bar/studies/records/findCustom',
'http://foo.bar/dataSets/records/findCustom',
body='{}',
status=400,
content_type='application/json')
......@@ -54,7 +54,7 @@ class TestStringETL:
def test_extract_raises_readable_if_not_json(self):
with responses.RequestsMock() as response:
response.add(response.GET,
'http://foo.bar/studies/records/findCustom',
'http://foo.bar/dataSets/records/findCustom',
body='abc{//}',
status=200,
content_type='application/json')
......@@ -68,7 +68,7 @@ class TestStringETL:
body = json.dumps([{'a': 'abc', '_id': {'$oid': '12345'}}])
with responses.RequestsMock() as response:
response.add(response.GET,
'http://foo.bar/studies/records/findCustom',
'http://foo.bar/dataSets/records/findCustom',
body=body,
status=200,
content_type='application/json')
......@@ -81,7 +81,7 @@ class TestStringETL:
body = json.dumps([{'a': 'abc', '_id': {'$oid': '12345'}}])
with responses.RequestsMock() as response:
response.add(response.GET,
'http://foo.bar/studies/records/findCustom',
'http://foo.bar/dataSets/records/findCustom',
body=body,
status=200,
content_type='application/json')
......
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