Skip to content
Snippets Groups Projects
Commit f5130f96 authored by Carsten Hinz's avatar Carsten Hinz
Browse files

changed name of output file to default value

parent ac240235
Branches
Tags
1 merge request!11Creation of first beta release version
......@@ -9,7 +9,7 @@ import tools.combine_contributor_files as combine_contributor_files
@mock.patch('builtins.open', mock.mock_open(read_data="1\n2\n3\n"))
def test_process_input_files(mock_exists):
# Setup
test_args = ["script_name", "--input_files", "file1.txt", "file2.txt", "--output", "output.txt"]
test_args = ["script_name", "--input_files", "file1.txt", "file2.txt", "--output", "combined_contributors.txt"]
with mock.patch('sys.argv', test_args):
# Execute
combine_contributor_files.main() # Assuming your script has a main function to initiate processing
......@@ -19,7 +19,7 @@ def test_process_input_files(mock_exists):
mock_open = mock.mock_open()
with mock.patch('builtins.open', mock_open):
combine_contributor_files.main()
mock_open.assert_called_with('output.txt', 'w')
mock_open.assert_called_with('combined_contributors.txt', 'w')
handle = mock_open()
handle.write.assert_called_with("1\n2\n3\n")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment