mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-09 21:25:47 +08:00
Move namespace tests to examples
This commit is contained in:
1 parent
f3919823fb
commit
796a2b4df5
11 files changed
+6
-6
No files matched your search
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
addopts = --doctest-modules
|
addopts = --doctest-modules
|
||||||
|
|
||||||
# Ignore broken files in blackbox test directories
|
# Ignore broken files in blackbox test directories
|
||||||
norecursedirs = .* docs completion refactor namespace_package
|
norecursedirs = .* docs completion refactor
|
||||||
scripts extensions speed static_analysis not_in_sys_path
|
scripts extensions speed static_analysis not_in_sys_path
|
||||||
jedi/third_party
|
jedi/third_party
|
||||||
|
|
||||||
|
|||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,13 +1,13 @@
|
|||||||
from os.path import dirname, join
|
from os.path import join
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
import py
|
import py
|
||||||
|
|
||||||
from ..helpers import get_example_dir
|
from ..helpers import get_example_dir, example_dir
|
||||||
|
|
||||||
|
|
||||||
SYS_PATH = [join(dirname(__file__), d)
|
SYS_PATH = [get_example_dir('namespace_package', 'ns1'),
|
||||||
for d in ['namespace_package/ns1', 'namespace_package/ns2']]
|
get_example_dir('namespace_package', 'ns2')]
|
||||||
|
|
||||||
|
|
||||||
def script_with_path(Script, *args, **kwargs):
|
def script_with_path(Script, *args, **kwargs):
|
||||||
@@ -68,7 +68,7 @@ def test_completions(Script, source, solution):
|
|||||||
def test_nested_namespace_package(Script):
|
def test_nested_namespace_package(Script):
|
||||||
code = 'from nested_namespaces.namespace.pkg import CONST'
|
code = 'from nested_namespaces.namespace.pkg import CONST'
|
||||||
|
|
||||||
sys_path = [dirname(__file__)]
|
sys_path = [example_dir]
|
||||||
|
|
||||||
script = Script(sys_path=sys_path, source=code)
|
script = Script(sys_path=sys_path, source=code)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user