Fix error when snapshot exists with an underscore in the name

This commit is contained in:
grossmj committed 2024-07-05 12:04:53 +02:00
1 parent 84efc55d02
commit 08154e43aa
4 files changed
+17 -9

No files matched your search

+1 -1
View File
@@ -750,7 +750,7 @@ def test_snapshots(project):
def test_get_snapshot(project):
os.makedirs(os.path.join(project.path, "snapshots"))
open(os.path.join(project.path, "snapshots", "test1.gns3project"), "w+").close()
open(os.path.join(project.path, "snapshots", "test1_260716_103713.gns3project"), "w+").close()
project.reset()
snapshot = list(project.snapshots.values())[0]