File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -332,7 +332,7 @@ 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 :
@@ -362,7 +362,7 @@ 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 :
You can’t perform that action at this time.
0 commit comments