Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
TillerBurr committed Nov 1, 2023
1 parent 7c88117 commit 8432027
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/pymdownx_blocks/dirtree.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from pymdownx.blocks import BlocksExtension, BlocksProcessor
from pymdownx.blocks.block import Block, type_html_identifier


class InvalidYAMLError(BaseException):
"""Raised when YAML is invalid"""

Expand Down
11 changes: 5 additions & 6 deletions tests/test_dirtree.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,21 +167,20 @@ def test_invalid_yaml():
DirTree(bad_dir)


@pytest.mark.parametrize("class_type", ["note", "warning", "tip", "danger",None])
@pytest.mark.parametrize('title',["A Title","Another Title",None])
def test_title(markdown_fixture,class_type,title):
@pytest.mark.parametrize("class_type", ["note", "warning", "tip", "danger", None])
@pytest.mark.parametrize("title", ["A Title", "Another Title", None])
def test_title(markdown_fixture, class_type, title):
md = markdown_fixture(
["pymdownx_blocks.dirtree"], extension_config={"pymdownx_blocks.dirtree": []}
)
placeholder = "{{DIRTREE}}"
_input = generate_dirtree_input(placeholder, title=title,_type=class_type)
_input = generate_dirtree_input(placeholder, title=title, _type=class_type)
_input = dedent_and_replace(_input, placeholder, threesubdir, dedent_new=True)

expected = generate_dirtree_expected(placeholder, title=title,_type=class_type)
expected = generate_dirtree_expected(placeholder, title=title, _type=class_type)
expected = dedent_and_replace(
expected, placeholder, expected_threesubdir, dedent_new=True
)

results = md.convert(_input)
assert results == expected

0 comments on commit 8432027

Please sign in to comment.