@@ -40,7 +40,7 @@ def test_media_upload_simple_v2(api_with_user, helpers):
4040def test_upload_media_chunked_init_v2 (api_with_user , helpers ):
4141 responses .add (
4242 responses .POST ,
43- url = "https://api.twitter.com/2/media/upload" ,
43+ url = "https://api.twitter.com/2/media/upload/initialize " ,
4444 json = helpers .load_json_data (
4545 "testdata/apis/media_upload_v2/upload_chunk_init_resp.json"
4646 ),
@@ -68,7 +68,7 @@ def test_upload_media_chunked_append_v2(api_with_user, helpers):
6868
6969 responses .add (
7070 responses .POST ,
71- url = "https://api.twitter.com/2/media/upload" ,
71+ url = f "https://api.twitter.com/2/media/upload/ { media_id } /append " ,
7272 )
7373
7474 with open ("testdata/apis/media_upload/x-logo.png" , "rb" ) as media :
@@ -88,7 +88,7 @@ def test_upload_media_chunked_append_v2(api_with_user, helpers):
8888
8989 responses .add (
9090 responses .POST ,
91- url = "https://api.twitter.com/2/media/upload" ,
91+ url = f "https://api.twitter.com/2/media/upload/ { media_id } /append " ,
9292 status = 401 ,
9393 json = {"errors" : [{"code" : 32 , "message" : "Could not authenticate you." }]},
9494 )
@@ -106,7 +106,7 @@ def test_upload_media_chunked_finalize_v2(api_with_user, helpers):
106106
107107 responses .add (
108108 responses .POST ,
109- url = "https://api.twitter.com/2/media/upload" ,
109+ url = f "https://api.twitter.com/2/media/upload/ { media_id } /finalize " ,
110110 json = helpers .load_json_data (
111111 "testdata/apis/media_upload_v2/upload_chunk_finalize_resp.json"
112112 ),
0 commit comments