From 04aa1fa922f83e2ae5db6410d9a7e81b209e43a8 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Tue, 5 Sep 2023 18:30:06 +0300 Subject: Replace assertRegexpMatches with assertRegex Signed-off-by: Munyoki Kilyungi --- wqflask/tests/unit/wqflask/api/test_markdown_routes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wqflask/tests') diff --git a/wqflask/tests/unit/wqflask/api/test_markdown_routes.py b/wqflask/tests/unit/wqflask/api/test_markdown_routes.py index 1c513ac5..4f575c4c 100644 --- a/wqflask/tests/unit/wqflask/api/test_markdown_routes.py +++ b/wqflask/tests/unit/wqflask/api/test_markdown_routes.py @@ -35,8 +35,8 @@ class TestMarkdownRoutesFunctions(unittest.TestCase): "/genenetwork/gn-docs/" "master/general/" "glossary/glossary.md") - self.assertRegexpMatches(markdown_content, - "Content for general/glossary/glossary.md not available.") + self.assertRegex(markdown_content, + "Content for general/glossary/glossary.md not available.") @mock.patch('wqflask.api.markdown.requests.get') def test_render_markdown_when_fetching_remotely(self, requests_mock): -- cgit v1.2.3