Skip to content

Commit c765c3a

Browse files
authored
Vb/remove json media type (#1728)
1 parent d4b545d commit c765c3a

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

libs/labelbox/src/labelbox/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,6 @@ def _create_project(self, **kwargs) -> Project:
919919
params.pop("append_to_existing_dataset", None),
920920
}
921921
extra_params = {k: v for k, v in extra_params.items() if v is not None}
922-
923922
return self._create(Entity.Project, params, extra_params)
924923

925924
def get_roles(self) -> List[Role]:

libs/labelbox/src/labelbox/schema/media_type.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ class MediaType(Enum):
99
Geospatial_Tile = "TMS_GEO"
1010
Html = "HTML"
1111
Image = "IMAGE"
12-
Json = "JSON"
1312
LLMPromptCreation = "LLM_PROMPT_CREATION"
1413
LLMPromptResponseCreation = "LLM_PROMPT_RESPONSE_CREATION"
1514
Pdf = "PDF"

libs/labelbox/tests/integration/test_labeling_frontend.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,18 @@ def test_get_labeling_frontends(client):
88

99

1010
def test_labeling_frontend_connecting_to_project(project):
11-
assert project.labeling_frontend() == None
11+
client = project.client
12+
default_labeling_frontend = next(
13+
client.get_labeling_frontends(where=LabelingFrontend.name == "Editor"))
14+
15+
assert project.labeling_frontend(
16+
) == default_labeling_frontend # we now have a default labeling frontend
1217

1318
frontend = list(project.client.get_labeling_frontends())[0]
19+
project.labeling_frontend.connect(frontend)
1420

1521
project.labeling_frontend.connect(frontend)
16-
assert project.labeling_frontend() == frontend
22+
assert project.labeling_frontend() == default_labeling_frontend
1723

1824
project.labeling_frontend.disconnect(frontend)
1925
assert project.labeling_frontend() == None

0 commit comments

Comments
 (0)