Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ test-staging: build
test-prod: build
docker run -it -v ${PWD}:/usr/src -w /usr/src \
-e LABELBOX_TEST_ENVIRON="prod" \
-e LABELBOX_TEST_API_KEY_PROD=${LABELBOX_TEST_API_KEY_PROD} \
-e LABELBOX_TEST_API_KEY_PROD=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJja2NjOWZtbXc0aGNkMDczOHFpeWM2YW54Iiwib3JnYW5pemF0aW9uSWQiOiJja2N6NmJ1YnVkeWZpMDg1NW8xZHQxZzlzIiwiYXBpS2V5SWQiOiJja3g3dnJ0dWtiZG5iMHo5djlsb2lheHdyIiwic2VjcmV0IjoiNzM5NjJmMmExZDNiMGZjOTNjYjQ2ZDc0YTYyOTQwNzYiLCJpYXQiOjE2Mzk1OTM3MjgsImV4cCI6MjI3MDc0NTcyOH0.ccJXRNVIh0cmtr8hq9Lh36LlTJ2kN1rVFyJuqh2Mn70 \
local/labelbox-python:test pytest $(PATH_TO_TEST) -svvx
14 changes: 3 additions & 11 deletions tests/integration/test_labeling_frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,9 @@


def test_get_labeling_frontends(client):
frontends = list(client.get_labeling_frontends())
assert len(frontends) >= 1, (
'Projects should have at least one frontend by default.')

# Test filtering
target_frontend = frontends[0]
filtered_frontends = client.get_labeling_frontends(
where=LabelingFrontend.iframe_url_path ==
target_frontend.iframe_url_path)
for frontend in filtered_frontends:
assert target_frontend == frontend
filtered_frontends = list(
client.get_labeling_frontends(where=LabelingFrontend.name == 'Editor'))
assert len(filtered_frontends)


def test_labeling_frontend_connecting_to_project(project):
Expand Down