File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
libs/lbox-clients/src/lbox Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ def python_version_info():
25
25
26
26
27
27
LABELBOX_CALL_PATTERN = re .compile (r"/labelbox/" )
28
+ TEST_FILE_PATTERN = re .compile (r"test_.*\.py$" )
28
29
29
30
30
31
def call_info ():
@@ -57,6 +58,10 @@ def call_info():
57
58
return (prefix , class_name , method_name )
58
59
59
60
61
+ def call_info_as_str ():
62
+ return f"{ call_info ()[0 ]} { call_info ()[1 ]} :{ call_info ()[2 ]} "
63
+
64
+
60
65
class RequestClient :
61
66
"""A Labelbox request client.
62
67
@@ -221,9 +226,7 @@ def convert_value(value):
221
226
if files :
222
227
del headers ["Content-Type" ]
223
228
del headers ["Accept" ]
224
- headers ["X-SDK-Method" ] = (
225
- f"{ call_info ()[0 ]} { call_info ()[1 ]} :{ call_info ()[2 ]} "
226
- )
229
+ headers ["X-SDK-Method" ] = call_info_as_str ()
227
230
request = requests .Request (
228
231
"POST" ,
229
232
endpoint ,
You can’t perform that action at this time.
0 commit comments