mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-09 07:14:48 +08:00
basics/tests for following imports if possible (on completion), #54.
This commit is contained in:
@@ -227,6 +227,12 @@ class TestRegression(Base):
|
||||
s = self.complete("import os; os.P_")
|
||||
assert 'P_NOWAIT' in [i.word for i in s]
|
||||
|
||||
def test_follow_imports_if_possible(self):
|
||||
""" github issue #45 """
|
||||
s = self.complete("import datetime.timedelta; datetime.timedelta")
|
||||
print s, [r.name.parent() for r in s], [r.type for r in s]
|
||||
assert 'Import' not in [r.type for r in s]
|
||||
|
||||
|
||||
class TestFeature(Base):
|
||||
def test_full_name(self):
|
||||
|
||||
Reference in New Issue
Block a user