mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 06:24:27 +08:00
16 lines
367 B
Python
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
|