mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
Move flask tests to examples folder
This commit is contained in:
@@ -144,7 +144,7 @@ def test_import_not_in_sys_path(Script):
|
|||||||
def test_flask_ext(Script, code, name):
|
def test_flask_ext(Script, code, name):
|
||||||
"""flask.ext.foo is really imported from flaskext.foo or flask_foo.
|
"""flask.ext.foo is really imported from flaskext.foo or flask_foo.
|
||||||
"""
|
"""
|
||||||
path = os.path.join(os.path.dirname(__file__), 'flask-site-packages')
|
path = get_example_dir('flask-site-packages')
|
||||||
completions = Script(code, sys_path=[path]).complete()
|
completions = Script(code, sys_path=[path]).complete()
|
||||||
assert name in [c.name for c in completions]
|
assert name in [c.name for c in completions]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user