We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab7747f commit 8a81c84Copy full SHA for 8a81c84
tests/test_dataset.py
@@ -83,3 +83,15 @@ def check_is_expected_response(response):
83
84
response = dataset.append(ds_items_with_metadata)
85
check_is_expected_response(response)
86
+
87
+def test_dataset_list_autotags(CLIENT):
88
+ def check_is_expected_response(response):
89
+ resp_json = response.json()
90
+ assert AUTOTAGS_KEY in resp_json[AUTOTAGS_KEY]
91
+ assert resp_json[AUTOTAGS_KEY] == []
92
+ # Creation
93
+ ds = CLIENT.create_dataset(TEST_DATASET_NAME)
94
+ assert isinstance(ds, Dataset)
95
+ # List of Autotags should be empty
96
+ autotag_response = CLIENT.list_autotags(ds.id)
97
+ check_is_expected_response(autotag_response)
0 commit comments