()
| 21 | |
| 22 | |
| 23 | def test_from_file(): |
| 24 | theme = Theme({"warning": "red"}) |
| 25 | text_file = io.StringIO() |
| 26 | text_file.write(theme.config) |
| 27 | text_file.seek(0) |
| 28 | |
| 29 | load_theme = Theme.from_file(text_file) |
| 30 | assert theme.styles == load_theme.styles |
| 31 | |
| 32 | |
| 33 | def test_read(): |