Skip to content

Commit

Permalink
Move test near xother RST contents tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danuker committed Feb 2, 2021
1 parent 6958455 commit 28c1e59
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions test/test_wiki_trac_rst_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,18 @@ def test_move_tocs_to_top(self):
)
)

def test_remove_content_directive_with_extra_space(self):
"""
Cleans a `contents` directive with too many spaces
between the `..` and the `contents::` part.
"""
self.assertConvertedContent(
'Sample content',

'.. contents::\n'
'\n'
'Sample content'
)

def test_remove_tracwiki_pageoutline(self):
"""
Expand Down Expand Up @@ -138,20 +150,6 @@ def test_remove_tracwiki_pageoutline(self):
)
)

def test_remove_content_directive_with_extra_space(self):
"""
Cleans a `contents` directive with too many spaces
between the `..` and the `contents::` part.
"""
self.assertConvertedContent(
'Sample content',

'.. contents::\n'
'\n'
'Sample content'
)


def test_removes_rst_wrapping(self):
"""
The Trac wiki syntax requires reStructuredText to be wrapped in
Expand Down

0 comments on commit 28c1e59

Please sign in to comment.