File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 33
44def test_get_labeling_frontends (client ):
55 frontends = list (client .get_labeling_frontends ())
6- assert len (frontends ) == 1 , frontends
6+ assert len (frontends ) >= 1 , (
7+ 'Projects should have at least one frontend by default.' )
78
89 # Test filtering
9- single = list (
10- client .get_labeling_frontends (where = LabelingFrontend .iframe_url_path ==
11- frontends [0 ].iframe_url_path ))
12- assert len (single ) == 1 , single
10+ target_frontend = frontends [0 ]
11+ filtered_frontends = client .get_labeling_frontends (
12+ where = LabelingFrontend .iframe_url_path == target_frontend .iframe_url_path )
13+ for frontend in filtered_frontends :
14+ assert target_frontend == frontend
1315
1416
1517def test_labeling_frontend_connecting_to_project (project ):
You can’t perform that action at this time.
0 commit comments