-
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.
- Loading branch information
1 parent
e2cb981
commit 894caa1
Showing
11 changed files
with
29 additions
and
5 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Binary file not shown.
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,24 @@ | ||
import py_framels | ||
|
||
|
||
def test_listing(): | ||
excepted = ["toto.****.tif@1-2"] | ||
result = py_framels.py_basic_listing(["toto.0001.tif", "toto.0002.tif"]) | ||
assert excepted == result | ||
|
||
|
||
def test_parse_dir(): | ||
excepted = ["aaa.***.tif@1-5", "foo_bar.exr"] | ||
result = py_framels.py_parse_dir("./samples/small/") | ||
assert excepted == result | ||
|
||
|
||
def test_recu_dir(): | ||
excepted = [ | ||
"./samples", | ||
"./samples/small", | ||
"./samples/small/aaa.***.tif@1-5", | ||
"./samples/small/foo_bar.exr", | ||
] | ||
result = py_framels.py_recursive_dir("./samples/") | ||
assert excepted == result |