Skip to content

Commit

Permalink
Fix search for test directories.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-rapp committed Dec 13, 2024
1 parent 291b16b commit 268120c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build_system/targets/testing/python/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,12 @@ def find_test_directories(self) -> List[str]:
:return: A list that contains the paths of the directories that have been found
"""
return self.test_file_search \
test_files = self.test_file_search \
.exclude_subdirectories_by_name(self.build_directory_name) \
.filter_by_substrings(starts_with='test_') \
.filter_by_file_type(FileType.python()) \
.list(self.root_directory)
return list({path.dirname(test_file) for test_file in test_files})

def __str__(self) -> str:
return 'PythonTestModule {root_directory="' + self.root_directory + '"}'

0 comments on commit 268120c

Please sign in to comment.