Skip to content

Commit

Permalink
[#3689] Fix filesystem searcher and tests that mock it (#4271)
Browse files Browse the repository at this point in the history
automatic commit by git-black, original commits:
  3d28b67
  • Loading branch information
gshank authored and iknox-fa committed Feb 8, 2022
1 parent 8e680fe commit 7587e14
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/dbt/parser/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ def filesystem_search(project: Project, relative_dirs: List[str], extension: str
root = project.project_root
file_path_list = []
for result in find_matching(root, relative_dirs, ext):
if 'searched_path' not in result or 'relative_path' not in result:
if "searched_path" not in result or "relative_path" not in result:
raise InternalException(
'Invalid result from find_matching: {}'.format(result)
)
file_match = FilePath(
searched_path=result['searched_path'],
relative_path=result['relative_path'],
modification_time=result['modification_time'],
searched_path=result["searched_path"],
relative_path=result["relative_path"],
modification_time=result["modification_time"],
project_root=root,
)
file_path_list.append(file_match)
Expand Down

0 comments on commit 7587e14

Please sign in to comment.