fix /read completions

This commit is contained in:
Paul Gauthier 2024-08-27 16:38:25 -07:00
parent 530dae2a98
commit a3554ffbbc
3 changed files with 6 additions and 2 deletions

View file

@ -34,6 +34,7 @@ class TestInputOutput(unittest.TestCase):
Path(fname).write_text("def hello(): pass\n")
autocompleter = AutoCompleter(root, rel_fnames, addable_rel_fnames, commands, "utf-8")
autocompleter.tokenize()
dump(autocompleter.words)
self.assertEqual(autocompleter.words, set(rel_fnames + [("hello", "`hello`")]))