Write config to a temporary file and load it.
(self, content)
| 11 | |
| 12 | class TestConfig(unittest.TestCase): |
| 13 | def load_temp_config(self, content): |
| 14 | """Write config to a temporary file and load it.""" |
| 15 | |
| 16 | with tempfile.NamedTemporaryFile() as f: |
| 17 | f.write(content.encode("utf8")) |
| 18 | f.flush() |
| 19 | |
| 20 | return config.Config(Path(f.name)) |
| 21 | |
| 22 | def test_load_theme(self): |
| 23 | color_scheme = dict() |
no test coverage detected