-
Notifications
You must be signed in to change notification settings - Fork 744
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
Showing
1 changed file
with
19 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
"""Helper functions for testing.""" | ||
import glob | ||
|
||
|
||
def return_test_files(): | ||
"""Return a list of all the *.raw files to run tests against.""" | ||
platform_dirs = glob.glob('tests/*') | ||
|
||
platforms = [] | ||
for platform in platform_dirs: | ||
platforms.append(glob.glob('%s/*' % platform)) | ||
|
||
template_dirs = [item for sublist in platforms for item in sublist] | ||
|
||
test_commands = [] | ||
for template_dir in template_dirs: | ||
test_commands.append(glob.glob('%s/*.raw' % template_dir)) | ||
|
||
return [item for sublist in test_commands for item in sublist] |