def test_wanted_source_files_empty_exclude(): wanted_files = ["one.feature", "subdir/three.feature", "two.md"] unwanted_files = ["four.py"] assert files._wanted_source_files(wanted_files + unwanted_files, []) == wanted_files
def test_wanted_source_files_empty_files(): assert files._wanted_source_files([], []) == []
def test_wanted_source_files(): wanted_files = ["one.feature", "two.md"] unwanted_files = ["three.py", "subdir/four.feature"] assert (files._wanted_source_files(wanted_files + unwanted_files, ["subdir/*"]) == wanted_files)