##// END OF EJS Templates
Merge remote-tracking branch 'mike/tab-completion-globals' into fix-completions
Darshan808 -
r29504:4b28cdf4 merge
parent child Browse files
Show More
@@ -626,7 +626,6 class TestCompleter(unittest.TestCase):
626 "Should have completed on a[0].r: %s",
626 "Should have completed on a[0].r: %s",
627 Completion(5, 6, "real"),
627 Completion(5, 6, "real"),
628 )
628 )
629
630 _(
629 _(
631 "a[0].from_",
630 "a[0].from_",
632 10,
631 10,
@@ -746,6 +745,16 class TestCompleter(unittest.TestCase):
746 words = completer.get__all__entries(A())
745 words = completer.get__all__entries(A())
747 self.assertEqual(words, [])
746 self.assertEqual(words, [])
748
747
748 def test_completes_globals_as_args_of_methods(self):
749 ip = get_ipython()
750 c = ip.Completer
751 c.use_jedi = False
752 ip.ex("long_variable_name = 1")
753 ip.ex("a = []")
754 s, matches = c.complete(None, "a.sort(lo")
755 self.assertIn("long_variable_name", matches)
756
757
749 def test_func_kw_completions(self):
758 def test_func_kw_completions(self):
750 ip = get_ipython()
759 ip = get_ipython()
751 c = ip.Completer
760 c = ip.Completer
General Comments 0
You need to be logged in to leave comments. Login now