fix uninstalled package tests under tox
This commit is contained in:
parent
88bcf78439
commit
3ba37d2afe
3 changed files with 15 additions and 7 deletions
|
|
@ -15,7 +15,6 @@ def test_explicit_instance_paths(modules_tmpdir):
|
|||
assert app.instance_path == str(modules_tmpdir)
|
||||
|
||||
|
||||
@pytest.mark.xfail(reason="weird interaction with tox")
|
||||
def test_main_module_paths(modules_tmpdir, purge_module):
|
||||
app = modules_tmpdir.join("main_app.py")
|
||||
app.write('import flask\n\napp = flask.Flask("__main__")')
|
||||
|
|
@ -27,7 +26,6 @@ def test_main_module_paths(modules_tmpdir, purge_module):
|
|||
assert app.instance_path == os.path.join(here, "instance")
|
||||
|
||||
|
||||
@pytest.mark.xfail(reason="weird interaction with tox")
|
||||
def test_uninstalled_module_paths(modules_tmpdir, purge_module):
|
||||
app = modules_tmpdir.join("config_module_app.py").write(
|
||||
"import os\n"
|
||||
|
|
@ -42,7 +40,6 @@ def test_uninstalled_module_paths(modules_tmpdir, purge_module):
|
|||
assert app.instance_path == str(modules_tmpdir.join("instance"))
|
||||
|
||||
|
||||
@pytest.mark.xfail(reason="weird interaction with tox")
|
||||
def test_uninstalled_package_paths(modules_tmpdir, purge_module):
|
||||
app = modules_tmpdir.mkdir("config_package_app")
|
||||
init = app.join("__init__.py")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue