Skip to content

Commit

Permalink
adjust url
Browse files Browse the repository at this point in the history
  • Loading branch information
djeck1432 committed Nov 27, 2024
1 parent d5f9975 commit c9f6db8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apps/web_app/tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

def test_create_subscription_to_notifications_get_http_method() -> None:
response = client.get(
url="/liquidation-watcher",
url="http://127.0.0.1/liquidation-watcher",
headers=_HEADERS,
)

Expand All @@ -29,7 +29,7 @@ def test_create_subscription_to_notifications_with_valid_data(
mock_database_session,
) -> None:
response = client.post(
url="/liquidation-watcher",
url="http://127.0.0.1/liquidation-watcher",
headers=_HEADERS,
data=urlencode(VALID_DATA),
)
Expand All @@ -45,7 +45,7 @@ def test_create_subscription_to_notifications_without_all_data_provided(
mock_data[invalid_data] = ""

response = client.post(
url="/liquidation-watcher",
url="http://127.0.0.1/liquidation-watcher",
headers=_HEADERS,
data=urlencode(mock_data),
)
Expand All @@ -59,7 +59,7 @@ def test_create_subscription_to_notifications_with_invalid_data(
mock_database_session,
) -> None:
response = client.post(
url="/liquidation-watcher",
url="http://127.0.0.1/liquidation-watcher",
headers=_HEADERS,
data=urlencode(INVALID_DATA),
)
Expand All @@ -70,6 +70,6 @@ def test_create_subscription_to_notifications_with_invalid_data(
def test_create_subscription_to_notifications_without_data(
mock_database_session,
) -> None:
response = client.post(url="/liquidation-watcher", headers=_HEADERS)
response = client.post(url="http://127.0.0.1/liquidation-watcher", headers=_HEADERS)

assert response.status_code == status.HTTP_422_UNPROCESSABLE_ENTITY

0 comments on commit c9f6db8

Please sign in to comment.