From d063dadcf79ffb4865c9a325a5212ca88ac945ee Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Mon, 5 Mar 2018 01:01:05 +0100 Subject: [PATCH] Don't need the tests from #122 --- .../namespace_package/ns1/pkg/nested/ns1_nested_file.py | 1 - test/test_evaluate/test_namespace_package.py | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) delete mode 100644 test/test_evaluate/namespace_package/ns1/pkg/nested/ns1_nested_file.py diff --git a/test/test_evaluate/namespace_package/ns1/pkg/nested/ns1_nested_file.py b/test/test_evaluate/namespace_package/ns1/pkg/nested/ns1_nested_file.py deleted file mode 100644 index a4bac78c..00000000 --- a/test/test_evaluate/namespace_package/ns1/pkg/nested/ns1_nested_file.py +++ /dev/null @@ -1 +0,0 @@ -foo = 'ns1_nested_file!' diff --git a/test/test_evaluate/test_namespace_package.py b/test/test_evaluate/test_namespace_package.py index 1645836b..4500c297 100644 --- a/test/test_evaluate/test_namespace_package.py +++ b/test/test_evaluate/test_namespace_package.py @@ -25,7 +25,6 @@ def test_goto_definition(Script): ('from pkg.ns1_folder import foo', 'ns1_folder!'), ('from pkg.ns1_file import foo', 'ns1_file!'), ('from pkg import foo', 'ns1!'), - ('from pkg.nested.ns1_nested_file import foo', 'ns1_nested_file!'), ] ) def test_goto_assignment(Script, source, solution): @@ -39,7 +38,7 @@ def test_simple_completions(Script): completions = script_with_path(Script, 'from pkg import ').completions() names = [str(c.name) for c in completions] # str because of unicode compare = ['foo', 'ns1_file', 'ns1_folder', 'ns2_folder', 'ns2_file', - 'pkg_resources', 'pkgutil', 'nested', '__name__', '__path__', + 'pkg_resources', 'pkgutil', '__name__', '__path__', '__package__', '__file__', '__doc__'] # must at least contain these items, other items are not important assert set(compare) == set(names)