diff --git a/scripts/apitest/pytest/test_dataset.py b/scripts/apitest/pytest/test_dataset.py index 5e3172c19a..4117f1d246 100644 --- a/scripts/apitest/pytest/test_dataset.py +++ b/scripts/apitest/pytest/test_dataset.py @@ -103,7 +103,7 @@ def test_tag_update(self, host, port): response = res.json() assert res.status_code == 200 - assert response["data"] == ["test1"] + assert "test1" in response["data"] res = requests.delete(hu.url(host, port) + path + "/test1", headers=hu.header()) assert res.status_code == 200 diff --git a/scripts/apitest/pytest/test_model.py b/scripts/apitest/pytest/test_model.py index 38b11457a6..57dc146796 100644 --- a/scripts/apitest/pytest/test_model.py +++ b/scripts/apitest/pytest/test_model.py @@ -103,7 +103,7 @@ def test_tag_update(self, host, port): response = res.json() assert res.status_code == 200 - assert response["data"] == ["test1"] + assert "test1" in response["data"] res = requests.delete(hu.url(host, port) + path + "/test1", headers=hu.header()) assert res.status_code == 200 diff --git a/scripts/apitest/pytest/test_runtime.py b/scripts/apitest/pytest/test_runtime.py index 456b211469..e715d5a540 100644 --- a/scripts/apitest/pytest/test_runtime.py +++ b/scripts/apitest/pytest/test_runtime.py @@ -103,7 +103,7 @@ def test_tag_update(self, host, port): response = res.json() assert res.status_code == 200 - assert response["data"] == ["test1"] + assert "test1" in response["data"] res = requests.delete(hu.url(host, port) + path + "/test1", headers=hu.header()) assert res.status_code == 200