Skip to content

[PLT-1691] Simplify get_label_filter_order test #1893

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions libs/labelbox/tests/integration/test_label.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,12 @@ def test_label_update(configured_project_with_label):
def test_label_filter_order(configured_project_with_label, label_helpers):
project, _, _, label = configured_project_with_label

l1 = label
project.create_label()
label_helpers.wait_for_labels(project, 2)

l2 = next(project.labels())

assert set(project.labels()) == {l1, l2}

assert list(project.labels(order_by=Label.created_at.asc)) == [l1, l2]
assert list(project.labels(order_by=Label.created_at.desc)) == [l2, l1]
list_asc = list(project.labels(order_by=Label.created_at.asc))
list_desc = list(project.labels(order_by=Label.created_at.desc))
assert list_asc == list_desc[::-1]


def test_label_bulk_deletion(configured_project_with_label):
Expand Down
Loading