1111 data_matcher ,
1212 enumerate_async ,
1313 param_matcher ,
14+ request_id_matcher ,
1415)
1516
1617if TYPE_CHECKING :
@@ -66,7 +67,7 @@ async def test_get_projects(
6667 url = endpoint ,
6768 json = page ,
6869 status = 200 ,
69- match = [auth_matcher (), param_matcher ({}, cursor )],
70+ match = [auth_matcher (), request_id_matcher (), param_matcher ({}, cursor )],
7071 )
7172 cursor = page ["next_cursor" ]
7273
@@ -102,7 +103,11 @@ async def test_add_project_minimal(
102103 url = f"{ DEFAULT_API_URL } /projects" ,
103104 json = default_project_response ,
104105 status = 200 ,
105- match = [auth_matcher (), data_matcher ({"name" : project_name })],
106+ match = [
107+ auth_matcher (),
108+ request_id_matcher (),
109+ data_matcher ({"name" : project_name }),
110+ ],
106111 )
107112
108113 new_project = todoist_api .add_project (name = project_name )
@@ -131,7 +136,11 @@ async def test_add_project_full(
131136 url = f"{ DEFAULT_API_URL } /projects" ,
132137 json = default_project_response ,
133138 status = 200 ,
134- match = [auth_matcher (), data_matcher ({"name" : project_name })],
139+ match = [
140+ auth_matcher (),
141+ request_id_matcher (),
142+ data_matcher ({"name" : project_name }),
143+ ],
135144 )
136145
137146 new_project = todoist_api .add_project (name = project_name )
@@ -164,7 +173,7 @@ async def test_update_project(
164173 url = f"{ DEFAULT_API_URL } /projects/{ default_project .id } " ,
165174 json = updated_project_dict ,
166175 status = 200 ,
167- match = [auth_matcher (), data_matcher (args )],
176+ match = [auth_matcher (), request_id_matcher (), data_matcher (args )],
168177 )
169178
170179 response = todoist_api .update_project (project_id = default_project .id , ** args )
@@ -198,7 +207,7 @@ async def test_archive_project(
198207 url = endpoint ,
199208 json = archived_project_dict ,
200209 status = 200 ,
201- match = [auth_matcher ()],
210+ match = [auth_matcher (), request_id_matcher () ],
202211 )
203212
204213 project = todoist_api .archive_project (project_id )
@@ -230,7 +239,7 @@ async def test_unarchive_project(
230239 url = endpoint ,
231240 json = unarchived_project_dict ,
232241 status = 200 ,
233- match = [auth_matcher ()],
242+ match = [auth_matcher (), request_id_matcher () ],
234243 )
235244
236245 project = todoist_api .unarchive_project (project_id )
@@ -257,7 +266,7 @@ async def test_delete_project(
257266 method = responses .DELETE ,
258267 url = endpoint ,
259268 status = 204 ,
260- match = [auth_matcher ()],
269+ match = [auth_matcher (), request_id_matcher () ],
261270 )
262271
263272 response = todoist_api .delete_project (project_id )
@@ -289,7 +298,7 @@ async def test_get_collaborators(
289298 url = endpoint ,
290299 json = page ,
291300 status = 200 ,
292- match = [auth_matcher (), param_matcher ({}, cursor )],
301+ match = [auth_matcher (), request_id_matcher (), param_matcher ({}, cursor )],
293302 )
294303 cursor = page ["next_cursor" ]
295304
0 commit comments