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/test_abstract_parser.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/test_abstract_parser.py') diff --git a/tests/test_abstract_parser.py b/tests/test_abstract_parser.py index 0012127..f52ab45 100644 --- a/tests/test_abstract_parser.py +++ b/tests/test_abstract_parser.py @@ -31,6 +31,9 @@ class ConcreteParser(AbstractParser): def reset_internal_contents(self, file_contents: str) -> None: super().reset_internal_contents(file_contents) + def parsed_content(self) -> dict: + super().parsed_content() + def test_that_abstract_parser_can_not_be_instantiated(): """ @@ -52,6 +55,7 @@ def test_that_abstract_parser_can_not_be_instantiated(): (ConcreteParser("").stringify, None), (ConcreteParser("").has, ("",)), (ConcreteParser("").reset_internal_contents, ("",)), + (ConcreteParser("").parsed_content, None), ], ) def test_that_abstract_parser_raises_not_implemented_errors(function, args): -- cgit v1.2.3