Skip to content

Commit 2fab8c9

Browse files
authored
[PLT-0] remove unnecessary integration test (#2012)
1 parent 2264f64 commit 2fab8c9

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

libs/labelbox/tests/integration/test_global_keys.py

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -69,33 +69,6 @@ def test_assign_same_global_keys_to_data_rows(client, dataset, image_url):
6969
)
7070

7171

72-
def test_long_global_key_validation(client, dataset, image_url):
73-
long_global_key = "x" * 201
74-
dr_1 = dataset.create_data_row(row_data=image_url)
75-
dr_2 = dataset.create_data_row(row_data=image_url)
76-
77-
gk_1 = str(uuid.uuid4())
78-
gk_2 = long_global_key
79-
80-
assignment_inputs = [
81-
{"data_row_id": dr_1.uid, "global_key": gk_1},
82-
{"data_row_id": dr_2.uid, "global_key": gk_2},
83-
]
84-
res = client.assign_global_keys_to_data_rows(assignment_inputs)
85-
86-
assert len(res["results"]) == 1
87-
assert len(res["errors"]) == 1
88-
assert res["status"] == "PARTIAL SUCCESS"
89-
assert res["results"][0]["data_row_id"] == dr_1.uid
90-
assert res["results"][0]["global_key"] == gk_1
91-
assert res["errors"][0]["data_row_id"] == dr_2.uid
92-
assert res["errors"][0]["global_key"] == gk_2
93-
assert (
94-
res["errors"][0]["error"]
95-
== "Invalid assignment. Either DataRow does not exist, or globalKey is invalid"
96-
)
97-
98-
9972
def test_global_key_with_whitespaces_validation(client, dataset, image_url):
10073
data_row_items = [
10174
{

0 commit comments

Comments
 (0)