@@ -169,14 +169,14 @@ async def test_get_by_id(self, runs_api_async, test_run):
169169 assert retrieved_run .id_ == test_run .id_
170170
171171 # TODO: test for client key
172- @pytest .mark .asyncio
173- async def test_get_by_id_with_client_key (self , runs_api_async , test_run ):
174- """Test getting a specific run by client key."""
175- assert test_run .client_key is not None
176- retrieved_run = await runs_api_async .get (client_key = test_run .client_key )
177-
178- assert retrieved_run is not None
179- assert retrieved_run .id_ == test_run .id_
172+ # @pytest.mark.asyncio
173+ # async def test_get_by_id_with_client_key(self, runs_api_async, test_run):
174+ # """Test getting a specific run by client key."""
175+ # assert test_run.client_key is not None
176+ # retrieved_run = await runs_api_async.get(client_key=test_run.client_key)
177+ #
178+ # assert retrieved_run is not None
179+ # assert retrieved_run.id_ == test_run.id_
180180
181181 @pytest .mark .asyncio
182182 async def test_get_without_params_raises_error (self , runs_api_async ):
@@ -258,7 +258,7 @@ async def test_create_run_with_all_fields(self, runs_api_async):
258258 start_time = start_time ,
259259 stop_time = stop_time ,
260260 tags = ["test" , "pytest" , "integration" , "sift-client-pytest" ],
261- metadata = {"test_type " : "integration" , "version" : "1.0" , "is_automated" : True },
261+ metadata = {"pytest_type " : "integration" },
262262 )
263263
264264 created_run = await runs_api_async .create (run_create )
@@ -271,9 +271,8 @@ async def test_create_run_with_all_fields(self, runs_api_async):
271271 assert created_run .start_time is not None
272272 assert created_run .stop_time is not None
273273 assert created_run .tags == ["test" , "pytest" , "integration" , "sift-client-pytest" ]
274- assert created_run .metadata ["test_type" ] == "integration"
275- assert created_run .metadata ["version" ] == "1.0"
276- assert created_run .metadata ["is_automated" ] is True
274+ assert created_run .metadata ["pytest_type" ] == "integration"
275+
277276 finally :
278277 # Clean up
279278 await runs_api_async .archive (created_run )
0 commit comments