diff --git a/tests/integration/api/test_get_collection.py b/tests/integration/api/test_get_collection.py index 0a2f96c000..5949c5c4e9 100644 --- a/tests/integration/api/test_get_collection.py +++ b/tests/integration/api/test_get_collection.py @@ -4,11 +4,11 @@ from .utils import assert_response_status @pytest.mark.parametrize("endpoint, expected_status", [ - ("/collection/3650664c-c8be-4d07-8d64-2d7003b02048", 200), - ("/collection/00000000-0000-0000-0000-000000000000", 404), - ("/collection/invalid_id_format", 400), - ("/collection/", 404), - ("/collection/%$@!*", 400) + ("/collections/3650664c-c8be-4d07-8d64-2d7003b02048", 200), + ("/collections/00000000-0000-0000-0000-000000000000", 404), + ("/collections/invalid_id_format", 400), + ("/collections/", 404), + ("/collections/%$@!*", 400) ]) def test_get_collection(endpoint, expected_status): url = API_URL + endpoint diff --git a/tests/integration/api/test_get_collection_list.py b/tests/integration/api/test_get_collection_list.py index 15b1ec9cdf..32ed2b98f4 100644 --- a/tests/integration/api/test_get_collection_list.py +++ b/tests/integration/api/test_get_collection_list.py @@ -4,7 +4,7 @@ def test_get_collection(): - url = API_URL + '/collection/list?sort=title' + url = API_URL + '/collections?sort=title' response = requests.get(url) assert response.status_code is not None diff --git a/tests/integration/api/test_get_edition.py b/tests/integration/api/test_get_edition.py index d931cb0c45..65d10637ca 100644 --- a/tests/integration/api/test_get_edition.py +++ b/tests/integration/api/test_get_edition.py @@ -4,11 +4,11 @@ from .utils import assert_response_status @pytest.mark.parametrize("endpoint, expected_status", [ - ("/edition/1982731", 200), - ("/edition/00000000-0000-0000-0000-000000000000", 400), - ("/edition/invalid_id_format", 400), - ("/edition/", 404), - ("/edition/%$@!*", 400) + ("/editions/1982731", 200), + ("/editions/00000000-0000-0000-0000-000000000000", 400), + ("/editions/invalid_id_format", 400), + ("/editions/", 404), + ("/editions/%$@!*", 400) ]) def test_get_edition(endpoint, expected_status): url = API_URL + endpoint diff --git a/tests/integration/api/test_get_link.py b/tests/integration/api/test_get_link.py index 22ca49f00f..96dea4ab87 100644 --- a/tests/integration/api/test_get_link.py +++ b/tests/integration/api/test_get_link.py @@ -4,11 +4,11 @@ from .utils import assert_response_status @pytest.mark.parametrize("endpoint, expected_status", [ - ("/link/1982731", 200), - ("/link/00000000-0000-0000-0000-000000000000", 400), - ("/link/invalid_id_format", 400), - ("/link/", 404), - ("/link/%$@!*", 400) + ("/links/1982731", 200), + ("/links/00000000-0000-0000-0000-000000000000", 400), + ("/links/invalid_id_format", 400), + ("/links/", 404), + ("/links/%$@!*", 400) ]) def test_get_link(endpoint, expected_status): url = API_URL + endpoint diff --git a/tests/integration/api/test_get_work.py b/tests/integration/api/test_get_work.py index 96d3cd4069..e2da49c532 100644 --- a/tests/integration/api/test_get_work.py +++ b/tests/integration/api/test_get_work.py @@ -4,11 +4,11 @@ from .utils import assert_response_status @pytest.mark.parametrize("endpoint, expected_status", [ - ("/work/701c5f00-cd7a-4a7d-9ed1-ce41c574ad1d", 200), - ("/work/00000000-0000-0000-0000-000000000000", 404), - ("/work/invalid_id_format", 400), - ("/work/", 404), - ("/work/%$@!*", 400) + ("/works/701c5f00-cd7a-4a7d-9ed1-ce41c574ad1d", 200), + ("/works/00000000-0000-0000-0000-000000000000", 404), + ("/works/invalid_id_format", 400), + ("/works/", 404), + ("/works/%$@!*", 400) ]) def test_get_work(endpoint, expected_status): url = API_URL + endpoint