@@ -699,9 +699,9 @@ def test_updates_hints(self, mock_api_constructor: MagicMock, *args, **kwargs):
699699
700700 mock_api .post .assert_has_calls (
701701 [
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 }),
703703 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 }),
705705 call ().raise_for_status (),
706706 ]
707707 )
@@ -1029,7 +1029,7 @@ def test_updates_multiple_attributes_at_once(self, mock_api_constructor: MagicMo
10291029 call ().raise_for_status (),
10301030 call ("/api/v1/files" , files = ANY , data = {"challenge_id" : 1 , "type" : "challenge" }),
10311031 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 }),
10331033 call ().raise_for_status (),
10341034 ]
10351035 )
@@ -1237,8 +1237,8 @@ def mock_post(*args, **kwargs):
12371237 # files
12381238 call ("/api/v1/files" , files = ANY , data = {"challenge_id" : 3 , "type" : "challenge" }),
12391239 # 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 }),
12421242 ]
12431243 )
12441244
0 commit comments