You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.
I think the reason why (1) & (2) failed in GH runners is because utils.delete_video_from_userdata() opens the userdata.json file with pathlib.Path.open.
Proposed Solutions
(1) & (2)
Use mocker.patch("app.utils.Path.open") instead of mocker.patch("app.utils.open") in the test methods.
In the recent GitHub Runner Automated Unit Test Results, we can see failures in the following test methods:
test_delete_video_from_user_data()
test_delete_video_from_user_data_video_not_exist()
test_audio_file_exists_in_audio_file_directory
I think the reason why (1) & (2) failed in GH runners is because
utils.delete_video_from_userdata()
opens theuserdata.json
file withpathlib.Path.open
.Proposed Solutions
(1) & (2)
Use
mocker.patch("app.utils.Path.open")
instead ofmocker.patch("app.utils.open")
in the test methods.(3)
Updates
(3) may be simplified as:
The text was updated successfully, but these errors were encountered: