From 4c4e774167ca531304ce17e640a12b2f0b8455a0 Mon Sep 17 00:00:00 2001 From: srwang Date: Wed, 12 Jul 2023 21:10:38 +0100 Subject: [PATCH] fix: remove error code from expected error message --- tubular/tests/test_segment_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tubular/tests/test_segment_api.py b/tubular/tests/test_segment_api.py index 7b239fdf..4e8ef81d 100644 --- a/tubular/tests/test_segment_api.py +++ b/tubular/tests/test_segment_api.py @@ -218,5 +218,5 @@ def test_send_event_to_segment_error(setup_regulation_api, caplog): # pylint: di segment.send_event_to_segment('test.event') assert mock_post.call_count == 4 - assert "400 Bad request" in caplog.text + assert "Bad request" in caplog.text