mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-16 02:27:06 +08:00
Two simple test fixes
This commit is contained in:
@@ -12,4 +12,4 @@ def test_django_default_project(Script):
|
|||||||
)
|
)
|
||||||
c, = script.completions()
|
c, = script.completions()
|
||||||
assert c.name == "SomeModel"
|
assert c.name == "SomeModel"
|
||||||
assert script._project._django is True
|
assert script._evaluator.project._django is True
|
||||||
|
|||||||
@@ -68,8 +68,8 @@ _s = ['/a', '/b', '/c/d/']
|
|||||||
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
'sys_path_, module_path, result', [
|
'sys_path_, module_path, result', [
|
||||||
(_s, '/a/b', None),
|
(_s, '/a/b', ['b']),
|
||||||
(_s, '/a/b/c', None),
|
(_s, '/a/b/c', ['b', 'c']),
|
||||||
(_s, '/a/b.py', ['b']),
|
(_s, '/a/b.py', ['b']),
|
||||||
(_s, '/a/b/c.py', ['b', 'c']),
|
(_s, '/a/b/c.py', ['b', 'c']),
|
||||||
(_s, '/x/b.py', None),
|
(_s, '/x/b.py', None),
|
||||||
|
|||||||
Reference in New Issue
Block a user