diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2020-08-05 21:14:07 -0500 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2020-08-05 21:14:07 -0500 |
| commit | 5ce47e47da9b6b5c55afa732ffbed787493d779d (patch) | |
| tree | a8532e5cedbc4af2b64758361b06c262fb75abae | |
| parent | Add tests for abstract parser (diff) | |
| download | config-file-5ce47e47da9b6b5c55afa732ffbed787493d779d.zip | |
Remove custom parser test
| -rw-r--r-- | tests/test_custom_parser_with_config_file.py | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/tests/test_custom_parser_with_config_file.py b/tests/test_custom_parser_with_config_file.py deleted file mode 100644 index 3c8bf98..0000000 --- a/tests/test_custom_parser_with_config_file.py +++ /dev/null @@ -1,31 +0,0 @@ -# def test_that_custom_parser_can_be_used(template_and_config_file): -# class CustomParser(AbstractParser): -# def __init__(self, file_contents): -# super().__init__(file_contents) -# -# def parse(self, file_contents: str): -# return file_contents -# -# def get(self, key, parse_types=True): -# return key -# -# def set(self, key, value): -# return key, value -# -# def delete(self, section_key): -# return section_key -# -# def has(self, section_key: str) -> bool: -# return True -# -# def stringify(self) -> str: -# return str(self.parsed_content) -# -# template_file, config = template_and_config_file(parser=CustomParser) -# -# assert isinstance(config._ConfigFile__parser, CustomParser) -# assert config.get("key") == "key" -# assert config.set("key", "value") == ("key", "value") -# assert config.delete("section_key") == "section_key" -# assert config.has("blah") -# assert config.stringify() == template_file.read_text() |