diff --git a/tests/core/rest/test_pagination.py b/tests/core/rest/test_pagination.py index 23dce98416..09e9d04b2f 100644 --- a/tests/core/rest/test_pagination.py +++ b/tests/core/rest/test_pagination.py @@ -27,7 +27,7 @@ def test_paginator_base_missing_implementation(): with pytest.raises( TypeError, - match="Can't instantiate abstract class .* get_next", + match="Can't instantiate abstract class .* '?get_next'?", ): BaseAPIPaginator(0) @@ -52,7 +52,7 @@ def test_paginator_page_number_missing_implementation(): with pytest.raises( TypeError, - match="Can't instantiate abstract class .* has_more", + match="Can't instantiate abstract class .* '?has_more'?", ): BasePageNumberPaginator(1) @@ -62,7 +62,7 @@ def test_paginator_offset_missing_implementation(): with pytest.raises( TypeError, - match="Can't instantiate abstract class .* has_more", + match="Can't instantiate abstract class .* '?has_more'?", ): BaseOffsetPaginator(0, 100) @@ -72,7 +72,7 @@ def test_paginator_hateoas_missing_implementation(): with pytest.raises( TypeError, - match="Can't instantiate abstract class .* get_next_url", + match="Can't instantiate abstract class .* '?get_next_url'?", ): BaseHATEOASPaginator()