mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +08:00
pep8
This commit is contained in:
@@ -90,7 +90,7 @@ class TestRegression(unittest.TestCase):
|
||||
assert len(s) == 1
|
||||
assert list(s)[0].word == 'str'
|
||||
|
||||
s = self.complete("", (1,0))
|
||||
s = self.complete("", (1, 0))
|
||||
assert len(s) > 0
|
||||
|
||||
def test_get_definition_on_import(self):
|
||||
@@ -115,13 +115,13 @@ class TestRegression(unittest.TestCase):
|
||||
s2 = "isinstance(), "
|
||||
|
||||
check = lambda call_def, index: call_def and call_def.index == index
|
||||
assert check(self.get_in_function_call(s, (1,11)), 0)
|
||||
assert check(self.get_in_function_call(s, (1,14)), 1)
|
||||
assert check(self.get_in_function_call(s, (1,15)), 1)
|
||||
assert check(self.get_in_function_call(s, (1,18)), 0)
|
||||
assert check(self.get_in_function_call(s, (1, 11)), 0)
|
||||
assert check(self.get_in_function_call(s, (1, 14)), 1)
|
||||
assert check(self.get_in_function_call(s, (1, 15)), 1)
|
||||
assert check(self.get_in_function_call(s, (1, 18)), 0)
|
||||
|
||||
#assert check(self.get_in_function_call(s2, (1,11)), 0) # TODO uncomment
|
||||
assert self.get_in_function_call(s2, (1,12)) is None
|
||||
##assert check(self.get_in_function_call(s2, (1, 11)), 0) # TODO uncomment
|
||||
assert self.get_in_function_call(s2, (1, 12)) is None
|
||||
assert self.get_in_function_call(s2) is None
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user