Skip to content

Commit 74b076c

Browse files
authored
[PLT-1691] Simplify get_label_filter_order test (#1893)
1 parent ad26d57 commit 74b076c

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

libs/labelbox/tests/integration/test_label.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,12 @@ def test_label_update(configured_project_with_label):
4444
def test_label_filter_order(configured_project_with_label, label_helpers):
4545
project, _, _, label = configured_project_with_label
4646

47-
l1 = label
4847
project.create_label()
4948
label_helpers.wait_for_labels(project, 2)
5049

51-
l2 = next(project.labels())
52-
53-
assert set(project.labels()) == {l1, l2}
54-
55-
assert list(project.labels(order_by=Label.created_at.asc)) == [l1, l2]
56-
assert list(project.labels(order_by=Label.created_at.desc)) == [l2, l1]
50+
list_asc = list(project.labels(order_by=Label.created_at.asc))
51+
list_desc = list(project.labels(order_by=Label.created_at.desc))
52+
assert list_asc == list_desc[::-1]
5753

5854

5955
def test_label_bulk_deletion(configured_project_with_label):

0 commit comments

Comments
 (0)