1
0
forked from VimPlug/jedi

Move the buildout_project stuff to a separate examples folder

This commit is contained in:
Dave Halter
2018-02-16 15:00:53 +01:00
parent 424b6ae907
commit 482b5e63db
7 changed files with 5 additions and 5 deletions

View File

@@ -3,7 +3,7 @@ addopts = --doctest-modules
# Ignore broken files in blackbox test directories
norecursedirs = .* docs completion refactor absolute_import namespace_package
scripts extensions speed static_analysis not_in_sys_path buildout_project
scripts extensions speed static_analysis not_in_sys_path
sample_venvs init_extension_module simple_import
# Activate `clean_jedi_cache` fixture for all tests. This should be

View File

@@ -14,15 +14,15 @@ def check_module_test(Script, code):
return check_sys_path_modifications(module_context)
@cwd_at('test/test_evaluate/buildout_project/src/proj_name')
@cwd_at('test/examples/buildout_project/src/proj_name')
def test_parent_dir_with_file(Script):
parent = _get_parent_dir_with_file(
os.path.abspath(os.curdir), 'buildout.cfg')
assert parent is not None
assert parent.endswith(os.path.join('test', 'test_evaluate', 'buildout_project'))
assert parent.endswith(os.path.join('test', 'examples', 'buildout_project'))
@cwd_at('test/test_evaluate/buildout_project/src/proj_name')
@cwd_at('test/examples/buildout_project/src/proj_name')
def test_buildout_detection(Script):
scripts = list(_get_buildout_script_paths(os.path.abspath('./module_name.py')))
assert len(scripts) == 1
@@ -56,7 +56,7 @@ def test_path_from_invalid_sys_path_assignment(Script):
assert 'invalid' not in paths
@cwd_at('test/test_evaluate/buildout_project/src/proj_name/')
@cwd_at('test/examples/buildout_project/src/proj_name/')
def test_sys_path_with_modifications(Script):
code = dedent("""
import os