1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-24 15:58:08 +00:00

Fix tests crash on travis

This commit is contained in:
Julien Duponchelle 2016-10-25 12:00:17 +02:00
parent 59dcdcc141
commit 4fe293f1d5
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -53,7 +53,9 @@ def test_shutdown_non_local(http_controller, web_server, config):
assert not web_server.shutdown_server.called 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') response = http_controller.post('/debug')
assert response.status == 201 assert response.status == 201
debug_dir = os.path.join(config.config_dir, "debug") debug_dir = os.path.join(config.config_dir, "debug")