forked from VimPlug/jedi
Avoid execution of Jedi in test setup
This makes testing Jedi potentially faster.
This commit is contained in:
@@ -18,7 +18,8 @@ def test_is_keyword():
|
|||||||
assert len(results) == 1 and results[0].is_keyword is False
|
assert len(results) == 1 and results[0].is_keyword is False
|
||||||
|
|
||||||
|
|
||||||
def make_definitions():
|
def test_basedefinition_type():
|
||||||
|
def make_definitions():
|
||||||
"""
|
"""
|
||||||
Return a list of definitions for parametrized tests.
|
Return a list of definitions for parametrized tests.
|
||||||
|
|
||||||
@@ -60,8 +61,7 @@ def make_definitions():
|
|||||||
return definitions
|
return definitions
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize('definition', make_definitions())
|
for definition in make_definitions():
|
||||||
def test_basedefinition_type(definition):
|
|
||||||
assert definition.type in ('module', 'class', 'instance', 'function',
|
assert definition.type in ('module', 'class', 'instance', 'function',
|
||||||
'generator', 'statement', 'import', 'param')
|
'generator', 'statement', 'import', 'param')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user