style: use not-in membership tests

This commit is contained in:
Mark Paronyan committed 2026-10-01 19:57:43 +03:00
1 parent 7a1e79a8a0
commit 06ef803ee9
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -413,4 +413,4 @@ async def test_export_with_ignoring_snapshots(tmpdir, project):
await write_file(str(tmpdir / "zipfile.zip"), z)
with zipfile.ZipFile(str(tmpdir / "zipfile.zip")) as myzip:
assert not os.path.join("snapshots", "snap.gns3project") in [f.filename for f in myzip.filelist]
assert os.path.join("snapshots", "snap.gns3project") not in [f.filename for f in myzip.filelist]