mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-05 06:41:13 +02:00
Support uploading iourc
This commit is contained in:
1 parent
964ea0f577
commit
66cdf39ea2
7 files changed
+98
-3
No files matched your search
@@ -367,3 +367,11 @@ def test_invalid_iou_file(loop, vm, iourc_file):
|
||||
with pytest.raises(IOUError):
|
||||
os.remove(iourc_file)
|
||||
loop.run_until_complete(asyncio.async(vm._check_iou_licence()))
|
||||
|
||||
|
||||
def test_iourc_content(vm):
|
||||
|
||||
vm.iourc_content = "test"
|
||||
|
||||
with open(os.path.join(vm.temporary_directory, "iourc")) as f:
|
||||
assert f.read() == "test"
|
||||
Reference in new issue
Block a user