Skip to content

Commit

Permalink
SFR-2417/update end point names (#486)
Browse files Browse the repository at this point in the history
* SFR-2417/update end point names

* name change updates
  • Loading branch information
ayan1229 authored Dec 20, 2024
1 parent 55d6160 commit 5a2b372
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
10 changes: 5 additions & 5 deletions tests/integration/api/test_get_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/api/test_get_collection_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions tests/integration/api/test_get_edition.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions tests/integration/api/test_get_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions tests/integration/api/test_get_work.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5a2b372

Please sign in to comment.