diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2020-12-21 22:31:42 -0600 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2023-11-05 15:31:22 -0500 |
| commit | 3f874d1ba218a82ac354af748be73bbbf6e0d985 (patch) | |
| tree | 132cf9a69e7e4f725ad9366424791e24b0ea7a84 /tests/test_abstract_parser.py | |
| parent | Fix readme badge (diff) | |
| download | config-file-3f874d1ba218a82ac354af748be73bbbf6e0d985.zip | |
Remove depreciated stringify() method
Diffstat (limited to 'tests/test_abstract_parser.py')
| -rw-r--r-- | tests/test_abstract_parser.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_abstract_parser.py b/tests/test_abstract_parser.py index 67469a6..a74d753 100644 --- a/tests/test_abstract_parser.py +++ b/tests/test_abstract_parser.py @@ -26,8 +26,8 @@ class ConcreteAbstractParser(AbstractParser): def has(self, section_key: str, wild: bool = False): super().has(section_key) - def stringify(self): - super().stringify() + def __str__(self): + super().__str__() def reset_internal_contents(self, file_contents: str) -> None: super().reset_internal_contents(file_contents) @@ -64,7 +64,7 @@ def test_that_base_parser_can_not_be_instantiated(): (ConcreteAbstractParser("").get, ("",)), (ConcreteAbstractParser("").set, ("", "")), (ConcreteAbstractParser("").delete, ("",)), - (ConcreteAbstractParser("").stringify, None), + (ConcreteAbstractParser("").__str__, None), (ConcreteAbstractParser("").has, ("",)), (ConcreteAbstractParser("").reset_internal_contents, ("",)), (ConcreteAbstractParser("").parsed_content, None), |