-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove snap archive creation in scan-run
- Loading branch information
Showing
5 changed files
with
46 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "deciphon-core" | ||
version = "0.20.17" | ||
version = "0.21.0" | ||
description = "Python wrapper around the Deciphon C library" | ||
authors = ["Danilo Horta <[email protected]>"] | ||
license = "MIT" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import os | ||
from pathlib import Path | ||
|
||
from deciphon_core.schema import NewSnapFile | ||
|
||
|
||
def test_collision(tmp_path: Path): | ||
os.chdir(tmp_path) | ||
|
||
x0 = NewSnapFile.create_from_prefix("snap") | ||
x0.basename.mkdir() | ||
|
||
x1 = NewSnapFile.create_from_prefix("snap") | ||
x1.basename.mkdir() | ||
|
||
x2 = NewSnapFile.create_from_prefix("snap") | ||
x2.basename.mkdir() | ||
|
||
x0.make_archive() | ||
x1.make_archive() | ||
x2.make_archive() | ||
|
||
assert x0.basename.name == "snap" | ||
assert x1.basename.name == "snap.1" | ||
assert x2.basename.name == "snap.2" |