(self)
| 473 | |
| 474 | # 3. Edge cases |
| 475 | def test_updating_namespace_complete(self): |
| 476 | self.repl = FakeRepl( |
| 477 | {"autocomplete_mode": autocomplete.AutocompleteModes.SIMPLE} |
| 478 | ) |
| 479 | self.set_input_line("foo") |
| 480 | self.repl.push("foobar = 2") |
| 481 | |
| 482 | self.assertTrue(self.repl.complete()) |
| 483 | self.assertTrue(hasattr(self.repl.matches_iter, "matches")) |
| 484 | self.assertEqual(self.repl.matches_iter.matches, ["foobar"]) |
| 485 | |
| 486 | def test_file_should_not_appear_in_complete(self): |
| 487 | self.repl = FakeRepl( |
nothing calls this directly
no test coverage detected