Skip to content
Snippets Groups Projects
Commit fbec4cbe authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

TEST: Unit test for allFiles

parent 5cd934ab
No related branches found
No related tags found
No related merge requests found
...@@ -110,6 +110,21 @@ def test_shallowest(): ...@@ -110,6 +110,21 @@ def test_shallowest():
assert fslpath.shallowest(path, suffixes) == output assert fslpath.shallowest(path, suffixes) == output
def test_allFiles():
create = [
'a/1',
'a/2',
'a/b/1',
'a/b/2',
'a/b/c/1',
'a/b/d/1',
]
with testdir(create) as td:
assert fslpath.allFiles('.') == [op.join('.', c) for c in create]
assert fslpath.allFiles(td) == [op.join(td, c) for c in create]
def test_hasExt(): def test_hasExt():
tests = [ tests = [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment