Files
jedi/test/test_api/test_project.py
Dave Halter 467c2e5def Merge branch 'master' into typeshed
There were quite a few conflicts, because there were two rewrites of the path
to dotted function.
2019-03-01 10:13:16 +01:00

16 lines
367 B
Python

import os
from ..helpers import get_example_dir
def test_django_default_project(Script):
dir = get_example_dir('django')
script = Script(
"from app import models\nmodels.SomeMo",
path=os.path.join(dir, 'models/x.py')
)
c, = script.completions()
assert c.name == "SomeModel"
assert script._evaluator.project._django is True