Skip to content

Commit 70d63c3

Browse files
author
Matt Sokoloff
committed
fix test
1 parent 2f6aab9 commit 70d63c3

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

tests/integration/test_labeling_frontend.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,9 @@
22

33

44
def test_get_labeling_frontends(client):
5-
frontends = list(client.get_labeling_frontends())
6-
assert len(frontends) >= 1, (
7-
'Projects should have at least one frontend by default.')
8-
9-
# Test filtering
10-
target_frontend = frontends[0]
11-
filtered_frontends = client.get_labeling_frontends(
12-
where=LabelingFrontend.iframe_url_path ==
13-
target_frontend.iframe_url_path)
14-
for frontend in filtered_frontends:
15-
assert target_frontend == frontend
5+
filtered_frontends = list(client.get_labeling_frontends(
6+
where=LabelingFrontend.name == 'Editor'))
7+
assert len(filtered_frontends)
168

179

1810
def test_labeling_frontend_connecting_to_project(project):

0 commit comments

Comments
 (0)