mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-08 03:38:23 +00:00
test(inventory): read the width test's tempdir file without the cache
The file is written by the test itself, so the path-keyed read cache does not fit; opt the read out of the uncached-read lint instead. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
849dd92afb
commit
7ac49234ca
1 file changed
+2
-1
@@ -81,7 +81,8 @@ class TestDumpDocument(unittest.TestCase):
|
||||
|
||||
dump_document(path, document)
|
||||
|
||||
lines = path.read_text(encoding="utf-8").splitlines()
|
||||
text = path.read_text(encoding="utf-8") # nocheck: cache-read tempdir
|
||||
lines = text.splitlines()
|
||||
self.assertEqual(3, len(lines))
|
||||
self.assertEqual(f"- {key}", lines[1])
|
||||
self.assertEqual(key, load_document(path)["authorized_keys"][0])
|
||||
|
||||
Reference in new issue
Block a user