aboutsummaryrefslogtreecommitdiffstats
path: root/tests/conftest.py
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2020-07-19 15:02:13 -0500
committerEugene Triguba <eugenetriguba@gmail.com>2020-07-19 15:02:13 -0500
commit461cb78f0a56b9293b5ade10fe90ec4aa77d23ad (patch)
tree8dc05802dd09b38b7766da886190871daf3b6667 /tests/conftest.py
parentRemove zsh info and add extras sub header (diff)
downloadconfig-file-461cb78f0a56b9293b5ade10fe90ec4aa77d23ad.zip
Change name of BaseParser to AbstractParser
Diffstat (limited to 'tests/conftest.py')
-rw-r--r--tests/conftest.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index bb16405..5fdf5a9 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -3,7 +3,7 @@ from typing import Callable, Type
import pytest
-from config_file.parsers import BaseParser, IniParser, JsonParser
+from config_file.parsers import AbstractParser, IniParser, JsonParser
from config_file.utils import create_config_path
@@ -47,7 +47,7 @@ def template_original_file() -> Callable[[Path], Path]:
def template_and_parser(template_file: Callable[[str, str], Path]) -> tuple:
def func(
file_type: str, template_name: str = "default"
- ) -> Callable[[str, str], Type[BaseParser]]:
+ ) -> Callable[[str, str], Type[AbstractParser]]:
test_file = template_file(file_type, template_name)
text = test_file.read_text(encoding="utf-8")
@@ -60,8 +60,8 @@ def template_and_parser(template_file: Callable[[str, str], Path]) -> tuple:
@pytest.fixture
-def templated_parser(template_and_parser) -> Callable[[str, str], Type[BaseParser]]:
- def func(file_type: str, template_name: str = "default") -> Type[BaseParser]:
+def templated_parser(template_and_parser) -> Callable[[str, str], Type[AbstractParser]]:
+ def func(file_type: str, template_name: str = "default") -> Type[AbstractParser]:
return template_and_parser(file_type, template_name)[1]
return func