File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -1925,6 +1925,15 @@ def get_labeling_service(self) -> LabelingService:
1925
1925
"""
1926
1926
return LabelingService .get (self .client , self .uid ) # type: ignore
1927
1927
1928
+ @experimental
1929
+ def request_specialized_labelers (self ) -> LabelingService :
1930
+ """Get the labeling service for this project.
1931
+
1932
+ Returns:
1933
+ LabelingService: The labeling service for this project.
1934
+ """
1935
+ return LabelingService .start (self .client , self .uid ) # type: ignore
1936
+
1928
1937
1929
1938
class ProjectMember (DbObject ):
1930
1939
user = Relationship .ToOne ("User" , cache = True )
Original file line number Diff line number Diff line change 1
1
import pytest
2
2
3
3
from labelbox .exceptions import ResourceNotFoundError
4
- from labelbox .schema .labeling_service import LabelingService , LabelingServiceStatus
4
+ from labelbox .schema .labeling_service import LabelingServiceStatus
5
5
6
6
7
7
def test_get_labeling_service_throws_exception (project ):
@@ -10,7 +10,7 @@ def test_get_labeling_service_throws_exception(project):
10
10
11
11
12
12
def test_start_labeling_service (project ):
13
- labeling_service = LabelingService . start ( project .client , project . uid )
13
+ labeling_service = project .request_specialized_labelers ( )
14
14
assert labeling_service .status == LabelingServiceStatus .SetUp
15
15
assert labeling_service .project_id == project .uid
16
16
You can’t perform that action at this time.
0 commit comments