File tree Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -18,5 +18,5 @@ test-staging: build
1818test-prod : build
1919 docker run -it -v ${PWD} :/usr/src -w /usr/src \
2020 -e LABELBOX_TEST_ENVIRON=" prod" \
21- -e LABELBOX_TEST_API_KEY_PROD=${LABELBOX_TEST_API_KEY_PROD} \
21+ -e LABELBOX_TEST_API_KEY_PROD=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJja2NjOWZtbXc0aGNkMDczOHFpeWM2YW54Iiwib3JnYW5pemF0aW9uSWQiOiJja2N6NmJ1YnVkeWZpMDg1NW8xZHQxZzlzIiwiYXBpS2V5SWQiOiJja3g3dnJ0dWtiZG5iMHo5djlsb2lheHdyIiwic2VjcmV0IjoiNzM5NjJmMmExZDNiMGZjOTNjYjQ2ZDc0YTYyOTQwNzYiLCJpYXQiOjE2Mzk1OTM3MjgsImV4cCI6MjI3MDc0NTcyOH0.ccJXRNVIh0cmtr8hq9Lh36LlTJ2kN1rVFyJuqh2Mn70 \
2222 local/labelbox-python:test pytest $(PATH_TO_TEST ) -svvx
Original file line number Diff line number Diff line change 22
33
44def 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 (
6+ client .get_labeling_frontends (where = LabelingFrontend .name == 'Editor' ))
7+ assert len (filtered_frontends )
168
179
1810def test_labeling_frontend_connecting_to_project (project ):
You can’t perform that action at this time.
0 commit comments