From aae18f82a0591daeb4a6459fb8a0dda700d9f2b8 Mon Sep 17 00:00:00 2001 From: genaro nadile Date: Sat, 11 Mar 2023 08:13:40 -0300 Subject: [PATCH] Changes regex to fix the test --- tests/test_GtagMP_internal_param_functions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_GtagMP_internal_param_functions.py b/tests/test_GtagMP_internal_param_functions.py index e15074a..dc732ed 100644 --- a/tests/test_GtagMP_internal_param_functions.py +++ b/tests/test_GtagMP_internal_param_functions.py @@ -82,7 +82,7 @@ def test_check_params_event_not_a_dict(self): ] ] - with pytest.raises(AssertionError, match="each event should be a dictionary"): + with pytest.raises(AssertionError, match="each event should be an instance of a dictionary"): self.gtag._check_params(event_not_a_dict) def test_check_params_events_incorrect_key(self): @@ -113,7 +113,7 @@ def test_check_params_warning(self, capture): self.gtag._check_params(event_should_get_warning) - expected_log = ('ga4mp.ga4mp', 'WARNING', "WARNING: Event parameters do not match event type.\nFor level_end event type, the correct parameter(s) are ['level_name', 'success'].\nFor a breakdown of currently supported event types and their parameters go here: https://support.google.com/analytics/answer/9267735\n") + expected_log = ('ga4mp.ga4mp', 'WARNING', "WARNING: Event parameters do not match event type.\nFor level_end event type, the correct parameter(s) are ['level_name', 'success'].\nThe parameter 'success' triggered this warning.\nFor a breakdown of currently supported event types and their parameters go here: https://support.google.com/analytics/answer/9267735\n") capture.check(expected_log)