forked from orbit-oss/flask
drop support for Python 2.7 and 3.5
This commit is contained in:
parent
7673835b3d
commit
a0a61acdec
7 changed files with 53 additions and 129 deletions
|
|
@ -24,7 +24,7 @@ def test_explicit_instance_paths(modules_tmpdir):
|
|||
assert app.instance_path == str(modules_tmpdir)
|
||||
|
||||
|
||||
@pytest.mark.xfail(reason="TODO: weird interaction with tox")
|
||||
@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__")')
|
||||
|
|
@ -36,6 +36,7 @@ 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"
|
||||
|
|
@ -50,6 +51,7 @@ 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