Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurZucker committed Dec 20, 2024
1 parent aa40889 commit 4b2e80f
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions utils/tests_fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -995,10 +995,7 @@ def _print_list(l) -> str:


def infer_tests_to_run(
output_file: str,
diff_with_last_commit: bool = False,
filter_models: bool = False,
test_all: bool = False
output_file: str, diff_with_last_commit: bool = False, filter_models: bool = False, test_all: bool = False
):
"""
The main function called by the test fetcher. Determines the tests to run from the diff.
Expand All @@ -1023,6 +1020,7 @@ def infer_tests_to_run(
modified_files = get_modified_python_files(diff_with_last_commit=diff_with_last_commit)
else:
modified_files = PATH_TO_TESTS.glob("*")
print("\n### test_all is TRUE, FETCHING ALL FILES###\n")
print(f"\n### MODIFIED FILES ###\n{_print_list(modified_files)}")

# Create the map that will give us all impacted modules.
Expand Down Expand Up @@ -1231,9 +1229,6 @@ def create_test_list_from_filter(full_test_list, out_path):
diff_with_last_commit = True

infer_tests_to_run(
args.output_file,
diff_with_last_commit=diff_with_last_commit,
filter_models=False,
test_all=args.fetch_all
args.output_file, diff_with_last_commit=diff_with_last_commit, filter_models=False, test_all=args.fetch_all
)
filter_tests(args.output_file, ["repo_utils"])

0 comments on commit 4b2e80f

Please sign in to comment.