aboutsummaryrefslogtreecommitdiff
path: root/tests/integration/test_general.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/test_general.py')
-rw-r--r--tests/integration/test_general.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/integration/test_general.py b/tests/integration/test_general.py
index 76cc754..99c4824 100644
--- a/tests/integration/test_general.py
+++ b/tests/integration/test_general.py
@@ -13,7 +13,7 @@ class GeneralAPITest(unittest.TestCase):
def test_metadata_endpoint_exists(self):
"""Test that /metadata/upload exists"""
- response = self.app.post("/metadata/upload/d41d86-e4ceEo")
+ response = self.app.post("/api/metadata/upload/d41d86-e4ceEo")
self.assertEqual(response.status_code, 400)
self.assertEqual(response.get_json(),
{"status": 128,
@@ -29,7 +29,7 @@ class GeneralAPITest(unittest.TestCase):
gzip_file = os.path.abspath(os.path.join(
os.path.dirname(__file__),
"../unit/upload-data.tar.gz"))
- response = self.app.post("/metadata/upload/d41d86-e4ceEo",
+ response = self.app.post("/api/metadata/upload/d41d86-e4ceEo",
data={"file": (gzip_file,
"upload-data.tar.gz")})
self.assertEqual(response.status_code, 201)
@@ -39,7 +39,7 @@ class GeneralAPITest(unittest.TestCase):
def test_metadata_file_wrong_upload(self):
"""Test that incorrect upload return correct status code"""
- response = self.app.post("/metadata/upload/d41d86-e4ceEo",
+ response = self.app.post("/api/metadata/upload/d41d86-e4ceEo",
data={"file": (__file__,
"my_file")})
self.assertEqual(response.status_code, 500)