mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 11:36:54 +00:00
main_function rename to test_function
This commit is contained in:
parent
3224f10f45
commit
e70e7c8bba
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue