From 954404e8a111d6445bf9313f0f27c205d88b550f Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sun, 16 Aug 2020 22:02:04 -0500 Subject: Enforce `parsed_content` property in AbstractParser It is used in the ConfigFile object to be able to index into it. --- tests/conftest.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/conftest.py') diff --git a/tests/conftest.py b/tests/conftest.py index 3ec303e..6eb351c 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -3,7 +3,6 @@ from typing import Callable, Tuple, Type, Union import pytest -from config_file import ConfigFile from config_file.abstract_parser import AbstractParser from config_file.config_file_path import ConfigFilePath @@ -55,7 +54,7 @@ def template_and_parser( file_type: str, template_name: str = "default" ) -> Tuple[Path, Type[AbstractParser]]: test_file = template_file(file_type, template_name) - return test_file, ConfigFile(test_file)._ConfigFile__parser + return test_file, ConfigFilePath(test_file).parser return func -- cgit v1.2.3