From 4fe293f1d5383adeaacf181618a00ba4f94dab45 Mon Sep 17 00:00:00 2001 From: Julien Duponchelle Date: Tue, 25 Oct 2016 12:00:17 +0200 Subject: [PATCH] Fix tests crash on travis --- tests/handlers/api/controller/test_server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/handlers/api/controller/test_server.py b/tests/handlers/api/controller/test_server.py index d8894b8e..ce0a0657 100644 --- a/tests/handlers/api/controller/test_server.py +++ b/tests/handlers/api/controller/test_server.py @@ -53,7 +53,9 @@ def test_shutdown_non_local(http_controller, web_server, config): assert not web_server.shutdown_server.called -def test_debug(http_controller, config): +def test_debug(http_controller, config, tmpdir): + config._main_config_file = str(tmpdir / "test.conf") + response = http_controller.post('/debug') assert response.status == 201 debug_dir = os.path.join(config.config_dir, "debug")