From c9f6db89f3f93e8847d811a45a07774c47da8bdb Mon Sep 17 00:00:00 2001 From: djeck1432 Date: Wed, 27 Nov 2024 16:43:56 +0100 Subject: [PATCH] adjust url --- apps/web_app/tests/test_main.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/web_app/tests/test_main.py b/apps/web_app/tests/test_main.py index ede42a24..75bfcd40 100644 --- a/apps/web_app/tests/test_main.py +++ b/apps/web_app/tests/test_main.py @@ -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, ) @@ -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), ) @@ -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), ) @@ -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), ) @@ -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