mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Fixes tests.
This commit is contained in:
1 parent
25b778aec0
commit
6d56da03e5
8 files changed
+53
-46
No files matched your search
@@ -44,10 +44,7 @@ def test_router(project, manager):
|
||||
|
||||
|
||||
def test_router_invalid_dynamips_path(project, manager, loop):
|
||||
config = configparser.ConfigParser()
|
||||
config.add_section("Dynamips")
|
||||
config.set("Dynamips", "dynamips_path", "/bin/test_fake")
|
||||
with patch("gns3server.config.Config", return_value=config):
|
||||
with patch("gns3server.config.Config.get_section_config", return_value={"dynamips_path": "/bin/test_fake"}):
|
||||
with pytest.raises(DynamipsError):
|
||||
router = Router("test", "00010203-0405-0607-0809-0a0b0c0d0e0e", project, manager)
|
||||
loop.run_until_complete(asyncio.async(router.create()))
|
||||
|
||||
Reference in new issue
Block a user