aboutsummaryrefslogtreecommitdiff
path: root/wqflask/tests/unit
diff options
context:
space:
mode:
authorBonfaceKilz2021-10-09 09:43:40 +0300
committerBonfaceKilz2021-10-25 14:00:14 +0300
commit0c6ad845e6f461e880b423bd8f79156754658f8a (patch)
treead0a0aa63302f607a5732f5ed381ef0d69c51af5 /wqflask/tests/unit
parenta22ffd365e669b0d8d577a82ea6bcd9c5c188b2b (diff)
downloadgenenetwork2-0c6ad845e6f461e880b423bd8f79156754658f8a.tar.gz
Move markdown_routes to api/markdown
All new API definitions should be migrated to "wqflask/ api"
Diffstat (limited to 'wqflask/tests/unit')
-rw-r--r--wqflask/tests/unit/wqflask/api/test_markdown_routes.py (renamed from wqflask/tests/unit/wqflask/test_markdown_routes.py)10
1 files changed, 5 insertions, 5 deletions
diff --git a/wqflask/tests/unit/wqflask/test_markdown_routes.py b/wqflask/tests/unit/wqflask/api/test_markdown_routes.py
index 90e0f17c..1c513ac5 100644
--- a/wqflask/tests/unit/wqflask/test_markdown_routes.py
+++ b/wqflask/tests/unit/wqflask/api/test_markdown_routes.py
@@ -1,10 +1,10 @@
-"""Test functions in markdown utils"""
+"""Test functions for wqflask/api/markdown.py"""
import unittest
from unittest import mock
from dataclasses import dataclass
-from wqflask.markdown_routes import render_markdown
+from wqflask.api.markdown import render_markdown
@dataclass
@@ -24,9 +24,9 @@ This is another sub-heading"""
class TestMarkdownRoutesFunctions(unittest.TestCase):
- """Test cases for functions in markdown_routes"""
+ """Test cases for functions in markdown"""
- @mock.patch('wqflask.markdown_routes.requests.get')
+ @mock.patch('wqflask.api.markdown.requests.get')
def test_render_markdown_when_fetching_locally(self, requests_mock):
requests_mock.return_value = MockRequests404()
markdown_content = render_markdown("general/glossary/glossary.md")
@@ -38,7 +38,7 @@ class TestMarkdownRoutesFunctions(unittest.TestCase):
self.assertRegexpMatches(markdown_content,
"Content for general/glossary/glossary.md not available.")
- @mock.patch('wqflask.markdown_routes.requests.get')
+ @mock.patch('wqflask.api.markdown.requests.get')
def test_render_markdown_when_fetching_remotely(self, requests_mock):
requests_mock.return_value = MockRequests200()
markdown_content = render_markdown("general/glossary/glossary.md")