mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Fix coding style around keyword arguments
This commit is contained in:
parent
cf0ad69d7f
commit
a0a74d3875
1 changed files with 18 additions and 18 deletions
|
|
@ -419,9 +419,9 @@ class RstReaderTest(ReaderTest):
|
|||
def test_typogrify_dashes_config(self):
|
||||
# Test default config
|
||||
page = self.read_file(
|
||||
path = 'article_with_typogrify_dashes.rst',
|
||||
TYPOGRIFY = True,
|
||||
TYPOGRIFY_DASHES = 'default')
|
||||
path='article_with_typogrify_dashes.rst',
|
||||
TYPOGRIFY=True,
|
||||
TYPOGRIFY_DASHES='default')
|
||||
expected = "<p>One: -; Two: —; Three: —-</p>\n"
|
||||
expected_title = "One -, two —, three —- dashes!"
|
||||
|
||||
|
|
@ -430,9 +430,9 @@ class RstReaderTest(ReaderTest):
|
|||
|
||||
# Test 'oldschool' variant
|
||||
page = self.read_file(
|
||||
path = 'article_with_typogrify_dashes.rst',
|
||||
TYPOGRIFY = True,
|
||||
TYPOGRIFY_DASHES = 'oldschool')
|
||||
path='article_with_typogrify_dashes.rst',
|
||||
TYPOGRIFY=True,
|
||||
TYPOGRIFY_DASHES='oldschool')
|
||||
expected = "<p>One: -; Two: –; Three: —</p>\n"
|
||||
expected_title = "One -, two –, three — dashes!"
|
||||
|
||||
|
|
@ -441,9 +441,9 @@ class RstReaderTest(ReaderTest):
|
|||
|
||||
# Test 'oldschool_inverted' variant
|
||||
page = self.read_file(
|
||||
path = 'article_with_typogrify_dashes.rst',
|
||||
TYPOGRIFY = True,
|
||||
TYPOGRIFY_DASHES = 'oldschool_inverted')
|
||||
path='article_with_typogrify_dashes.rst',
|
||||
TYPOGRIFY=True,
|
||||
TYPOGRIFY_DASHES='oldschool_inverted')
|
||||
expected = "<p>One: -; Two: —; Three: –</p>\n"
|
||||
expected_title = "One -, two —, three – dashes!"
|
||||
|
||||
|
|
@ -668,9 +668,9 @@ class MdReaderTest(ReaderTest):
|
|||
def test_typogrify_dashes_config(self):
|
||||
# Test default config
|
||||
page = self.read_file(
|
||||
path = 'article_with_typogrify_dashes.md',
|
||||
TYPOGRIFY = True,
|
||||
TYPOGRIFY_DASHES = 'default')
|
||||
path='article_with_typogrify_dashes.md',
|
||||
TYPOGRIFY=True,
|
||||
TYPOGRIFY_DASHES='default')
|
||||
expected = "<p>One: -; Two: —; Three: —-</p>"
|
||||
expected_title = "One -, two —, three —- dashes!"
|
||||
|
||||
|
|
@ -679,9 +679,9 @@ class MdReaderTest(ReaderTest):
|
|||
|
||||
# Test 'oldschool' variant
|
||||
page = self.read_file(
|
||||
path = 'article_with_typogrify_dashes.md',
|
||||
TYPOGRIFY = True,
|
||||
TYPOGRIFY_DASHES = 'oldschool')
|
||||
path='article_with_typogrify_dashes.md',
|
||||
TYPOGRIFY=True,
|
||||
TYPOGRIFY_DASHES='oldschool')
|
||||
expected = "<p>One: -; Two: –; Three: —</p>"
|
||||
expected_title = "One -, two –, three — dashes!"
|
||||
|
||||
|
|
@ -690,9 +690,9 @@ class MdReaderTest(ReaderTest):
|
|||
|
||||
# Test 'oldschool_inverted' variant
|
||||
page = self.read_file(
|
||||
path = 'article_with_typogrify_dashes.md',
|
||||
TYPOGRIFY = True,
|
||||
TYPOGRIFY_DASHES = 'oldschool_inverted')
|
||||
path='article_with_typogrify_dashes.md',
|
||||
TYPOGRIFY=True,
|
||||
TYPOGRIFY_DASHES='oldschool_inverted')
|
||||
expected = "<p>One: -; Two: —; Three: –</p>"
|
||||
expected_title = "One -, two —, three – dashes!"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue