Skip to content

Commit 49b5957

Browse files
authored
Re-enable tests using Client get_projects() (#1740)
1 parent dd2e3b4 commit 49b5957

File tree

5 files changed

+4
-33
lines changed

5 files changed

+4
-33
lines changed

libs/labelbox/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ dependencies = [
1111
"strenum>=0.4.15",
1212
"tqdm>=4.66.2",
1313
"geojson>=3.1.0",
14+
"mypy==1.10.1",
1415
]
1516
readme = "README.md"
1617
requires-python = ">=3.8"

libs/labelbox/tests/integration/test_filtering.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ def project_to_test_where(client, rand_gen):
2424

2525
# Avoid assertions using equality to prevent intermittent failures due to
2626
# other builds simultaneously adding projects to test org
27-
@pytest.mark.skip(
28-
reason="broken due to get_projects HF for sunset-custom-editor")
2927
def test_where(client, project_to_test_where):
3028
p_a, p_b, p_c = project_to_test_where
3129
p_a_name = p_a.name

libs/labelbox/tests/integration/test_labeler_performance.py

Lines changed: 0 additions & 20 deletions
This file was deleted.

libs/labelbox/tests/integration/test_labeling_frontend.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,15 @@ def test_get_labeling_frontends(client):
88
assert len(filtered_frontends)
99

1010

11-
@pytest.mark.skip(
12-
reason="broken due to get_projects HF for sunset-custom-editor")
1311
def test_labeling_frontend_connecting_to_project(project):
1412
client = project.client
1513
default_labeling_frontend = next(
1614
client.get_labeling_frontends(where=LabelingFrontend.name == "Editor"))
1715

18-
assert project.labeling_frontend(
19-
) == default_labeling_frontend # we now have a default labeling frontend
16+
assert project.labeling_frontend() is None
2017

21-
frontend = list(project.client.get_labeling_frontends())[0]
22-
project.labeling_frontend.connect(frontend)
23-
24-
project.labeling_frontend.connect(frontend)
18+
project.labeling_frontend.connect(default_labeling_frontend)
2519
assert project.labeling_frontend() == default_labeling_frontend
2620

27-
project.labeling_frontend.disconnect(frontend)
21+
project.labeling_frontend.disconnect(default_labeling_frontend)
2822
assert project.labeling_frontend() == None

libs/labelbox/tests/integration/test_project.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ def delete_tag(tag_id: str):
119119
delete_tag(tagB.uid)
120120

121121

122-
@pytest.mark.skip(
123-
reason="broken due to get_projects HF for sunset-custom-editor")
124122
def test_project_filtering(client, rand_gen, data_for_project_test):
125123
name_1 = rand_gen(str)
126124
p1 = data_for_project_test(name_1)

0 commit comments

Comments
 (0)