From 93ef85ff16761c4196849a6a0b67ba5c45472431 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 24 Nov 2015 20:43:20 +0100 Subject: [PATCH] tests: Serve index.html files in webserver_sub.py. --- tests/integration/webserver_sub.py | 2 ++ 1 file changed, 2 insertions(+) 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)