From 3158ff27d4a2c7d10472edd8c7680620908d61d0 Mon Sep 17 00:00:00 2001 From: Kiran Jonnalagadda Date: Mon, 12 Dec 2022 23:22:35 +0530 Subject: [PATCH] Move conftest further down to subfolder --- tests/unit/utils/{ => markdown}/conftest.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) rename tests/unit/utils/{ => markdown}/conftest.py (96%) diff --git a/tests/unit/utils/conftest.py b/tests/unit/utils/markdown/conftest.py similarity index 96% rename from tests/unit/utils/conftest.py rename to tests/unit/utils/markdown/conftest.py index e1a06f91a..cba072037 100644 --- a/tests/unit/utils/conftest.py +++ b/tests/unit/utils/markdown/conftest.py @@ -1,4 +1,5 @@ """Test configuration for markdown tests.""" +# pylint: disable=too-many-arguments from copy import copy from datetime import datetime @@ -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: @@ -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])