diff --git a/aaq/tests/test_utils.py b/aaq/tests/test_utils.py index 98ae6b79..6388a6ea 100644 --- a/aaq/tests/test_utils.py +++ b/aaq/tests/test_utils.py @@ -26,7 +26,7 @@ def test_search_function(self): fakeAaqUdV2Api = FakeAaqUdV2Api() responses.add_callback( responses.POST, - "http://aaq_v2/api/check-urgency", + "http://aaq_v2/api/urgency-detect", callback=fakeAaqUdV2Api.post_urgency_detect_return_true, content_type="application/json", ) @@ -80,7 +80,7 @@ def test_urgency_check(self): fakeAaqUdV2Api = FakeAaqUdV2Api() responses.add_callback( responses.POST, - "http://aaq_v2/api/check-urgency", + "http://aaq_v2/api/urgency-detect", callback=fakeAaqUdV2Api.post_urgency_detect_return_true, content_type="application/json", ) diff --git a/aaq/tests/test_views.py b/aaq/tests/test_views.py index 04707947..b533b2f5 100644 --- a/aaq/tests/test_views.py +++ b/aaq/tests/test_views.py @@ -371,7 +371,7 @@ def test_search(self): fakeAaqUdV2Api = FakeAaqUdV2Api() responses.add_callback( responses.POST, - "http://aaq_v2/api/check-urgency", + "http://aaq_v2/api/urgency-detect", callback=fakeAaqUdV2Api.post_urgency_detect_return_true, content_type="application/json", ) @@ -446,7 +446,7 @@ def test_request(self): fakeAaqUdV2Api = FakeAaqUdV2Api() responses.add_callback( responses.POST, - "http://aaq_v2/check-urgency", + "http://aaq_v2/urgency-detect", callback=fakeAaqUdV2Api.post_urgency_detect_return_true, content_type="application/json", ) diff --git a/aaq/utils.py b/aaq/utils.py index 258eb5a2..d778d52d 100644 --- a/aaq/utils.py +++ b/aaq/utils.py @@ -7,7 +7,7 @@ def check_urgency_v2(message_text): - url = urllib.parse.urljoin(settings.AAQ_V2_API_URL, "api/check-urgency") + url = urllib.parse.urljoin(settings.AAQ_V2_API_URL, "api/urgency-detect") headers = { "Authorization": f"Bearer {settings.AAQ_V2_AUTH}", "Content-Type": "application/json",