diff options
Diffstat (limited to 'tests/test_syntax/extensions')
-rw-r--r-- | tests/test_syntax/extensions/test_attr_list.py | 2 | ||||
-rw-r--r-- | tests/test_syntax/extensions/test_code_hilite.py | 18 | ||||
-rw-r--r-- | tests/test_syntax/extensions/test_fenced_code.py | 6 | ||||
-rw-r--r-- | tests/test_syntax/extensions/test_footnotes.py | 4 | ||||
-rw-r--r-- | tests/test_syntax/extensions/test_md_in_html.py | 4 | ||||
-rw-r--r-- | tests/test_syntax/extensions/test_tables.py | 2 |
6 files changed, 18 insertions, 18 deletions
diff --git a/tests/test_syntax/extensions/test_attr_list.py b/tests/test_syntax/extensions/test_attr_list.py index 6baaafb..f6a4fe6 100644 --- a/tests/test_syntax/extensions/test_attr_list.py +++ b/tests/test_syntax/extensions/test_attr_list.py @@ -26,7 +26,7 @@ class TestAttrList(TestCase): maxDiff = None - # TODO: Move the rest of the attr_list tests here. + # TODO: Move the rest of the `attr_list` tests here. def test_empty_list(self): self.assertMarkdownRenders( diff --git a/tests/test_syntax/extensions/test_code_hilite.py b/tests/test_syntax/extensions/test_code_hilite.py index 09dd523..0a41c4f 100644 --- a/tests/test_syntax/extensions/test_code_hilite.py +++ b/tests/test_syntax/extensions/test_code_hilite.py @@ -29,9 +29,9 @@ try: except ImportError: has_pygments = False -# The version required by the tests is the version specified and installed in the 'pygments' tox env. -# In any environment where the PYGMENTS_VERSION environment variable is either not defined or doesn't -# match the version of Pygments installed, all tests which rely in pygments will be skipped. +# The version required by the tests is the version specified and installed in the `pygments` tox environment. +# In any environment where the `PYGMENTS_VERSION` environment variable is either not defined or doesn't +# match the version of Pygments installed, all tests which rely in Pygments will be skipped. required_pygments_version = os.environ.get('PYGMENTS_VERSION', '') @@ -54,7 +54,7 @@ class TestCodeHiliteClass(TestCase): def test_codehilite_defaults(self): if has_pygments: - # Odd result as no lang given and a single comment is not enough for guessing. + # Odd result as no `lang` given and a single comment is not enough for guessing. expected = ( '<div class="codehilite"><pre><span></span><code><span class="err"># A Code Comment</span>\n' '</code></pre></div>' @@ -98,7 +98,7 @@ class TestCodeHiliteClass(TestCase): def test_codehilite_set_lang(self): if has_pygments: - # Note an extra `<span class="x">` is added to end of code block when lang explicitly set. + # Note an extra `<span class="x">` is added to end of code block when `lang` explicitly set. # Compare with expected output for `test_guess_lang`. Not sure why this happens. expected = ( '<div class="codehilite"><pre><span></span><code><span class="cp"><?php</span> ' @@ -122,7 +122,7 @@ class TestCodeHiliteClass(TestCase): '</code></pre></div>' ) else: - # Note that without pygments there is no way to check that the language name is bad. + # Note that without Pygments there is no way to check that the language name is bad. expected = ( '<pre class="codehilite"><code class="language-unkown">' '<?php print("Hello World"); ?>\n' @@ -273,7 +273,7 @@ class TestCodeHiliteClass(TestCase): '</code></pre></div>' ) else: - # TODO: Implement linenostart for no-pygments. Will need to check what JS libs look for. + # TODO: Implement `linenostart` for no-Pygments. Will need to check what JavaScript libraries look for. expected = ( '<pre class="codehilite"><code class="language-text linenums">plain text\n' '</code></pre>' @@ -374,7 +374,7 @@ class TestCodeHiliteExtension(TestCase): def testBasicCodeHilite(self): if has_pygments: - # Odd result as no lang given and a single comment is not enough for guessing. + # Odd result as no `lang` given and a single comment is not enough for guessing. expected = ( '<div class="codehilite"><pre><span></span><code><span class="err"># A Code Comment</span>\n' '</code></pre></div>' @@ -645,7 +645,7 @@ class TestCodeHiliteExtension(TestCase): def testUnknownOption(self): if has_pygments: - # Odd result as no lang given and a single comment is not enough for guessing. + # Odd result as no `lang` given and a single comment is not enough for guessing. expected = ( '<div class="codehilite"><pre><span></span><code><span class="err"># A Code Comment</span>\n' '</code></pre></div>' diff --git a/tests/test_syntax/extensions/test_fenced_code.py b/tests/test_syntax/extensions/test_fenced_code.py index be3c215..e24a177 100644 --- a/tests/test_syntax/extensions/test_fenced_code.py +++ b/tests/test_syntax/extensions/test_fenced_code.py @@ -31,9 +31,9 @@ try: except ImportError: has_pygments = False -# The version required by the tests is the version specified and installed in the 'pygments' tox env. -# In any environment where the PYGMENTS_VERSION environment variable is either not defined or doesn't -# match the version of Pygments installed, all tests which rely in pygments will be skipped. +# The version required by the tests is the version specified and installed in the `pygments` tox environment. +# In any environment where the `PYGMENTS_VERSION` environment variable is either not defined or doesn't +# match the version of Pygments installed, all tests which rely in Pygments will be skipped. required_pygments_version = os.environ.get('PYGMENTS_VERSION', '') diff --git a/tests/test_syntax/extensions/test_footnotes.py b/tests/test_syntax/extensions/test_footnotes.py index 9a6b32a..9fe786b 100644 --- a/tests/test_syntax/extensions/test_footnotes.py +++ b/tests/test_syntax/extensions/test_footnotes.py @@ -266,7 +266,7 @@ class TestFootnotes(TestCase): ) def test_backlink_text(self): - """Test backlink configuration.""" + """Test back-link configuration.""" self.assertMarkdownRenders( 'paragraph[^1]\n\n[^1]: A Footnote', @@ -302,7 +302,7 @@ class TestFootnotes(TestCase): ) def test_backlink_title(self): - """Test backlink title configuration without placeholder.""" + """Test back-link title configuration without placeholder.""" self.assertMarkdownRenders( 'paragraph[^1]\n\n[^1]: A Footnote', diff --git a/tests/test_syntax/extensions/test_md_in_html.py b/tests/test_syntax/extensions/test_md_in_html.py index 6c13f11..3de49b0 100644 --- a/tests/test_syntax/extensions/test_md_in_html.py +++ b/tests/test_syntax/extensions/test_md_in_html.py @@ -32,7 +32,7 @@ class TestMarkdownInHTMLPostProcessor(TestCase): def test_stash_to_string(self): # There should be no known cases where this actually happens so we need to - # forcefully pass an etree Element to the method to ensure proper behavior. + # forcefully pass an `etree` `Element` to the method to ensure proper behavior. element = Element('div') element.text = 'Foo bar.' md = Markdown(extensions=['md_in_html']) @@ -1208,7 +1208,7 @@ class TestMdInHTML(TestCase): def load_tests(loader, tests, pattern): - ''' Ensure TestHTMLBlocks doesn't get run twice by excluding it here. ''' + ''' Ensure `TestHTMLBlocks` doesn't get run twice by excluding it here. ''' suite = TestSuite() for test_class in [TestDefaultwMdInHTML, TestMdInHTML, TestMarkdownInHTMLPostProcessor]: tests = loader.loadTestsFromTestCase(test_class) diff --git a/tests/test_syntax/extensions/test_tables.py b/tests/test_syntax/extensions/test_tables.py index cd3fbe4..6a1a0d4 100644 --- a/tests/test_syntax/extensions/test_tables.py +++ b/tests/test_syntax/extensions/test_tables.py @@ -26,7 +26,7 @@ from markdown.extensions.tables import TableExtension class TestTableBlocks(TestCase): def test_empty_cells(self): - """Empty cells (nbsp).""" + """Empty cells (`nbsp`).""" text = """ | Second Header |