mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Delete a project
This commit is contained in:
1 parent
9a0b260c56
commit
986a7f55ef
4 files changed
+54
-2
No files matched your search
@@ -81,3 +81,11 @@ def test_commit(tmpdir, manager):
|
||||
project.commit()
|
||||
assert len(project._vms_to_destroy) == 0
|
||||
assert os.path.exists(directory) is False
|
||||
|
||||
|
||||
def test_project_delete(tmpdir):
|
||||
project = Project(location=str(tmpdir))
|
||||
directory = project.path
|
||||
assert os.path.exists(directory)
|
||||
project.delete()
|
||||
assert os.path.exists(directory) is False
|
||||
Reference in new issue
Block a user