From f93134d4f8f888efa175e55dc4216e9739f6e0ba Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Fri, 8 Mar 2019 16:23:37 +0100 Subject: [PATCH] Two simple test fixes --- test/test_api/test_project.py | 2 +- test/test_evaluate/test_sys_path.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_api/test_project.py b/test/test_api/test_project.py index a0f4e4d5..328333d2 100644 --- a/test/test_api/test_project.py +++ b/test/test_api/test_project.py @@ -12,4 +12,4 @@ def test_django_default_project(Script): ) c, = script.completions() assert c.name == "SomeModel" - assert script._project._django is True + assert script._evaluator.project._django is True diff --git a/test/test_evaluate/test_sys_path.py b/test/test_evaluate/test_sys_path.py index a43e5262..8f1d8934 100644 --- a/test/test_evaluate/test_sys_path.py +++ b/test/test_evaluate/test_sys_path.py @@ -68,8 +68,8 @@ _s = ['/a', '/b', '/c/d/'] @pytest.mark.parametrize( 'sys_path_, module_path, result', [ - (_s, '/a/b', None), - (_s, '/a/b/c', None), + (_s, '/a/b', ['b']), + (_s, '/a/b/c', ['b', 'c']), (_s, '/a/b.py', ['b']), (_s, '/a/b/c.py', ['b', 'c']), (_s, '/x/b.py', None),