Skip to content

Commit

Permalink
Move conftest further down to subfolder
Browse files Browse the repository at this point in the history
  • Loading branch information
jace committed Dec 12, 2022
1 parent d8b89fb commit 3158ff2
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test configuration for markdown tests."""
# pylint: disable=too-many-arguments

from copy import copy
from datetime import datetime
Expand All @@ -12,7 +13,7 @@
from funnel.utils.markdown import MarkdownConfig


def pytest_generate_tests(metafunc):
def pytest_generate_tests(metafunc) -> None:
md_tests_data_root: Path = Path('tests/unit/utils/markdown/data')

class MarkdownCase:
Expand Down Expand Up @@ -159,12 +160,12 @@ def update_debug_output(cls) -> None:
(md_tests_data_root / 'output.html').write_text(template.prettify())

if (
"md_testname" in metafunc.fixturenames
and "md_configname" in metafunc.fixturenames
'md_testname' in metafunc.fixturenames
and 'md_configname' in metafunc.fixturenames
):
metafunc.parametrize(
('md_testname', 'md_configname'), MarkdownTestRegistry.test_cases()
)

if "markdown_test_registry" in metafunc.fixturenames:
if 'markdown_test_registry' in metafunc.fixturenames:
metafunc.parametrize('markdown_test_registry', [MarkdownTestRegistry])

0 comments on commit 3158ff2

Please sign in to comment.