mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-09 01:25:18 +08:00
Refactor the mixed objects a bit to make at least some interpreter tests pass.
This commit is contained in:
1 parent
575352d4b6
commit
9ac301d0c3
7 files changed
+93
-114
No files matched your search
@@ -60,7 +60,8 @@ def test_side_effect_completion():
|
||||
side_effect = get_completion('SideEffectContainer', _GlobalNameSpace.__dict__)
|
||||
|
||||
# It's a class that contains MixedObject.
|
||||
assert isinstance(side_effect._definition.base, mixed.MixedObject)
|
||||
context, = side_effect._name.infer()
|
||||
assert isinstance(context, mixed.MixedObject)
|
||||
foo = get_completion('SideEffectContainer.foo', _GlobalNameSpace.__dict__)
|
||||
assert foo.name == 'foo'
|
||||
|
||||
|
||||
Reference in new issue
Block a user