From e70e7c8bba62b1c2fe5773f55c43890756264200 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alvaro=20Andr=C3=A9s=20Rodr=C3=ADguez=20Scelza?= Date: Fri, 7 Jun 2019 14:44:48 -0300 Subject: [PATCH] main_function rename to test_function --- .../tests/automatic_testing/util/test_helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pre_commit_hooks/loaderon_hooks/tests/automatic_testing/util/test_helpers.py b/pre_commit_hooks/loaderon_hooks/tests/automatic_testing/util/test_helpers.py index 9ed9466..3107e89 100644 --- a/pre_commit_hooks/loaderon_hooks/tests/automatic_testing/util/test_helpers.py +++ b/pre_commit_hooks/loaderon_hooks/tests/automatic_testing/util/test_helpers.py @@ -8,10 +8,10 @@ def get_sample_file_path(file_name): return testing_files_folder_path + file_name -def perform_test_on_file_expecting_result(file_name, main_function, expected_result=0): +def perform_test_on_file_expecting_result(file_name, test_function, expected_result=0): sample_file_path = get_sample_file_path(file_name) sys.argv.append(sample_file_path) - result = main_function(sys.argv) + result = test_function(sys.argv) assert result == expected_result