Fix. Fix problem wich version package in requirements and add test markdown and rewrite for new markdown

This commit is contained in:
Alex
2022-08-06 18:34:16 +07:00
parent a28569a984
commit cf5be66fae
3 changed files with 6 additions and 6 deletions

View File

@@ -20,14 +20,14 @@ class MarkDown(SimpleTestCase):
self.assertEqual(output_value, expected_value)
def test_markdown_fenced_code(self):
expected_value = '<h1>Title</h1>\n<pre><code class="python"># import os\n</code></pre>'
expected_value = '<h1>Title</h1>\n<pre><code class="language-python"># import os\n</code></pre>'
input_value = """
# Title
```python
# import os
```
"""
"""
output_value = get_markdown(input_value)
self.assertEqual(output_value, expected_value)