(self)
| 85 | |
| 86 | class TestHistoryFileAccess(unittest.TestCase): |
| 87 | def setUp(self): |
| 88 | self.tempdir = tempfile.TemporaryDirectory() |
| 89 | self.filename = Path(self.tempdir.name) / "history_temp_file" |
| 90 | self.encoding = getpreferredencoding() |
| 91 | |
| 92 | with open( |
| 93 | self.filename, "w", encoding=self.encoding, errors="ignore" |
| 94 | ) as f: |
| 95 | f.write(b"#1\n#2\n".decode()) |
| 96 | |
| 97 | def test_load(self): |
| 98 | history = History() |
nothing calls this directly
no test coverage detected