1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 17:28:08 +00:00

Fix tests on case sensitive file system

This commit is contained in:
Julien Duponchelle 2017-06-07 11:20:55 +02:00
parent cdcdba7411
commit c538ec5937
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -27,13 +27,12 @@ from unittest.mock import MagicMock
from tests.utils import AsyncioMagicMock, AsyncioBytesIO
from gns3server.controller.project import Project
from gns3server.controller.compute import Compute
from gns3server.controller.export_project import export_project, _filter_files
@pytest.fixture
def project(controller):
p = Project(controller=controller, name="Test")
p = Project(controller=controller, name="test")
p.dump = MagicMock()
return p
@ -179,7 +178,7 @@ def test_export_disallow_running(tmpdir, project, node, async_run):
node._status = "started"
with pytest.raises(aiohttp.web.HTTPConflict):
z = async_run(export_project(project, str(tmpdir)))
async_run(export_project(project, str(tmpdir)))
def test_export_disallow_some_type(tmpdir, project, async_run):