Evaluator -> InferState

This commit is contained in:
Dave Halter committed 2019-08-15 00:37:51 +02:00
1 parent 8157d119a7
commit a5dff65142
62 files changed
+768 -768

No files matched your search

+2 -2
View File
@@ -13,12 +13,12 @@ def test_django_default_project(Script):
)
c, = script.completions()
assert c.name == "SomeModel"
assert script._evaluator.project._django is True
assert script._infer_state.project._django is True
def test_interpreter_project_path():
# Run from anywhere it should be the cwd.
dir = os.path.join(root_dir, 'test')
with set_cwd(dir):
project = Interpreter('', [locals()])._evaluator.project
project = Interpreter('', [locals()])._infer_state.project
assert project._path == dir