@@ -699,9 +699,9 @@ def test_updates_hints(self, mock_api_constructor: MagicMock, *args, **kwargs):
699
699
700
700
mock_api .post .assert_has_calls (
701
701
[
702
- call ("/api/v1/hints" , json = {"content" : "free hint" , "cost" : 0 , "challenge_id" : 1 }),
702
+ call ("/api/v1/hints" , json = {"content" : "free hint" , "title" : "" , " cost" : 0 , "challenge_id" : 1 }),
703
703
call ().raise_for_status (),
704
- call ("/api/v1/hints" , json = {"content" : "paid hint" , "cost" : 100 , "challenge_id" : 1 }),
704
+ call ("/api/v1/hints" , json = {"content" : "paid hint" , "title" : "" , " cost" : 100 , "challenge_id" : 1 }),
705
705
call ().raise_for_status (),
706
706
]
707
707
)
@@ -1029,7 +1029,7 @@ def test_updates_multiple_attributes_at_once(self, mock_api_constructor: MagicMo
1029
1029
call ().raise_for_status (),
1030
1030
call ("/api/v1/files" , files = ANY , data = {"challenge_id" : 1 , "type" : "challenge" }),
1031
1031
call ().raise_for_status (),
1032
- call ("/api/v1/hints" , json = {"content" : "free hint" , "cost" : 0 , "challenge_id" : 1 }),
1032
+ call ("/api/v1/hints" , json = {"title" : "" , " content" : "free hint" , "cost" : 0 , "challenge_id" : 1 }),
1033
1033
call ().raise_for_status (),
1034
1034
]
1035
1035
)
@@ -1237,8 +1237,8 @@ def mock_post(*args, **kwargs):
1237
1237
# files
1238
1238
call ("/api/v1/files" , files = ANY , data = {"challenge_id" : 3 , "type" : "challenge" }),
1239
1239
# hints
1240
- call ("/api/v1/hints" , json = {"content" : "free hint" , "cost" : 0 , "challenge_id" : 3 }),
1241
- call ("/api/v1/hints" , json = {"content" : "paid hint" , "cost" : 100 , "challenge_id" : 3 }),
1240
+ call ("/api/v1/hints" , json = {"title" : "" , " content" : "free hint" , "cost" : 0 , "challenge_id" : 3 }),
1241
+ call ("/api/v1/hints" , json = {"title" : "" , " content" : "paid hint" , "cost" : 100 , "challenge_id" : 3 }),
1242
1242
]
1243
1243
)
1244
1244
0 commit comments