Skip to content

Commit 75cee46

Browse files
committed
Update the tests
1 parent 9c49659 commit 75cee46

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

wagtail_jotform/tests/tests.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -369,9 +369,7 @@ def test_fetch_jotform_data_missing_api_url_and_key(self, mock_logger):
369369
result = fetch_jotform_data()
370370

371371
# Check that the logger.error was called and None was returned
372-
mock_logger.error.assert_called_once_with(
373-
"API_URL or API_KEY is not set in settings."
374-
)
372+
mock_logger.error.assert_called_once_with("API_URL is not set in settings.")
375373
self.assertIsNone(result)
376374

377375
@override_settings(
@@ -403,9 +401,7 @@ def test_fetch_jotform_data_empty_api_key(self, mock_logger):
403401
result = fetch_jotform_data()
404402

405403
# Check that the logger.error was called and None was returned
406-
mock_logger.error.assert_called_once_with(
407-
"API_URL or API_KEY is not set in settings."
408-
)
404+
mock_logger.error.assert_called_once_with("API_KEY is not set in settings.")
409405
self.assertIsNone(result)
410406

411407
@override_settings(

0 commit comments

Comments
 (0)