@@ -332,11 +332,11 @@ def test_raises_error_for_duplicate():
332332def test_dataset_export_autotag_tagged_items (CLIENT ):
333333 # This test can only run for the test user who has an indexed dataset.
334334 # TODO: if/when we can create autotags via api, create one instead.
335- if NUCLEUS_PYTEST_USER_ID in CLIENT . api_key :
335+ if NUCLEUS_PYTEST_USER_ID in os . environ [ "NUCLEUS_PYTEST_USER_ID" ] :
336336 dataset = CLIENT .get_dataset (DATASET_WITH_AUTOTAG )
337337
338338 with pytest .raises (NucleusAPIError ) as api_error :
339- dataset .autotag_scores (autotag_name = "NONSENSE_GARBAGE" )
339+ dataset .autotag_items (autotag_name = "NONSENSE_GARBAGE" )
340340 assert (
341341 f"The autotag NONSENSE_GARBAGE was not found in dataset { DATASET_WITH_AUTOTAG } "
342342 in str (api_error .value )
@@ -362,19 +362,19 @@ def test_dataset_export_autotag_tagged_items(CLIENT):
362362def test_dataset_export_autotag_training_items (CLIENT ):
363363 # This test can only run for the test user who has an indexed dataset.
364364 # TODO: if/when we can create autotags via api, create one instead.
365- if NUCLEUS_PYTEST_USER_ID in CLIENT . api_key :
365+ if NUCLEUS_PYTEST_USER_ID in os . environ [ "NUCLEUS_PYTEST_USER_ID" ] :
366366 dataset = CLIENT .get_dataset (DATASET_WITH_AUTOTAG )
367367
368368 with pytest .raises (NucleusAPIError ) as api_error :
369- dataset .autotag_scores (autotag_name = "NONSENSE_GARBAGE" )
369+ dataset .autotag_training_items (autotag_name = "NONSENSE_GARBAGE" )
370370 assert (
371371 f"The autotag NONSENSE_GARBAGE was not found in dataset { DATASET_WITH_AUTOTAG } "
372372 in str (api_error .value )
373373 )
374374
375375 items = dataset .autotag_training_items (autotag_name = "PytestTestTag" )
376376
377- assert "autotagItems " in items
377+ assert "autotagPositiveTrainingItems " in items
378378 assert "autotag" in items
379379
380380 autotagTrainingItems = items ["autotagPositiveTrainingItems" ]
0 commit comments