Skip to content

Commit a06b6db

Browse files
cfsmp3claude
authored andcommitted
test: Update test_upload_type_request for directory creation
Update test assertions to account for additional os.path.join and os.makedirs calls added to ensure TempFiles and TestResults directories exist before file operations. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 4b5e62d commit a06b6db

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_ci/test_controllers.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1901,7 +1901,10 @@ def test_upload_type_request(self, mock_filename, mock_os, mock_open, mock_iter,
19011901

19021902
mock_log.debug.assert_called_once()
19031903
mock_filename.assert_called_once()
1904-
self.assertEqual(2, mock_os.path.join.call_count)
1904+
# 4 calls: temp_dir, temp_path, results_dir, final_path
1905+
self.assertEqual(4, mock_os.path.join.call_count)
1906+
# 2 calls: makedirs for TempFiles and TestResults directories
1907+
self.assertEqual(2, mock_os.makedirs.call_count)
19051908
mock_upload_file.save.assert_called_once()
19061909
mock_open.assert_called_once_with(mock.ANY, "rb")
19071910
mock_os.path.splitext.assert_called_once_with(mock.ANY)

0 commit comments

Comments
 (0)