diff --git a/tests/integration/webserver_sub.py b/tests/integration/webserver_sub.py index 44b784bc9..4e71c7829 100644 --- a/tests/integration/webserver_sub.py +++ b/tests/integration/webserver_sub.py @@ -47,6 +47,8 @@ def send_data(path): basedir = os.path.realpath(os.path.dirname(__file__)) data_dir = os.path.join(basedir, 'data') print(basedir) + if os.path.isdir(os.path.join(data_dir, path)): + path = path + '/index.html' return flask.send_from_directory(data_dir, path)