From d6832cd600a28c1396c67229245347c1cf9440ca Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Thu, 26 Nov 2020 13:18:44 -0600 Subject: Move parsers to parsers directory --- tests/conftest.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/conftest.py') diff --git a/tests/conftest.py b/tests/conftest.py index 075d356..9392368 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -3,8 +3,8 @@ from typing import Callable, Tuple, Type, Union import pytest -from config_file.abstract_parser import AbstractParser from config_file.config_file_path import ConfigFilePath +from config_file.parsers.abstract_parser import AbstractParser @pytest.fixture @@ -42,7 +42,7 @@ def template_file(tmp_file: Callable[[str, str], Path]) -> Callable[[str, str], template_name: The name of the template to retrieve. Defaults to the "default" template. i.e. the template with the name "default" with it's respective file extension. - + Returns: A Path object point to that test template. """ @@ -69,7 +69,7 @@ def template_original_file() -> Callable[[Path], Path]: Args: template_path: The path to the temporary template file we're using. - + Returns: A Path object pointing to the newly created original template file. """ @@ -99,9 +99,9 @@ def template_and_parser( file_type: The parser type to retrieve i.e. "ini" -> IniParser template_name: The template to retrieve. Defaults to the "default" template file for each extension. - + Returns: - The template and parser corresponding to the file_type with + The template and parser corresponding to the file_type with the template file read in. """ @@ -125,7 +125,7 @@ def templated_parser(template_and_parser) -> Callable[[str, str], Type[AbstractP file_type: The parser type to retrieve i.e. "ini" -> IniParser template_name: The template to retrieve. Defaults to the "default" template file for each extension. - + Returns: The parser corresponding to the file_type with the template file read in. -- cgit v1.2.3