aboutsummaryrefslogtreecommitdiff
path: root/tests/integration/test_general.py
diff options
context:
space:
mode:
authorBonfaceKilz2021-03-03 12:04:00 +0300
committerBonfaceKilz2021-03-08 21:09:58 +0300
commit396aeed35a5925cb03cc1569669b257b8ccb07cb (patch)
tree38800eb85ad8ad0020e1474450d03ab16814f572 /tests/integration/test_general.py
parent87a3e2254bdd837e9647c42b9c4ab98e986c5e1d (diff)
downloadgenenetwork3-396aeed35a5925cb03cc1569669b257b8ccb07cb.tar.gz
Prepend all endpoints with "api"
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)