Skip to content

Commit 315895b

Browse files
committed
Fix tests
1 parent 1dc4e5f commit 315895b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

reportportal_client/core/rp_responses.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def _get_json_decode_error_message(response: Union[Response, ClientResponse]) ->
5252
)
5353

5454

55-
def get_field(name: str, json: Optional[Any]) -> Optional[str]:
55+
def _get_field(name: str, json: Optional[Any]) -> Optional[str]:
5656
if json is None:
5757
return None
5858
if name not in json:
@@ -85,7 +85,7 @@ def id(self) -> Optional[str]:
8585
:return: ID as string or NOT_FOUND, or None if the response is not JSON
8686
"""
8787
json = self.json
88-
return get_field("id", json)
88+
return _get_field("id", json)
8989

9090
@property
9191
def is_success(self) -> bool:
@@ -151,7 +151,7 @@ async def id(self) -> Optional[str]:
151151
:return: ID as string or NOT_FOUND, or None if the response is not JSON
152152
"""
153153
json = await self.json
154-
return get_field("id", json)
154+
return _get_field("id", json)
155155

156156
@property
157157
def is_success(self) -> bool:
@@ -184,7 +184,7 @@ async def message(self) -> Optional[str]:
184184
json = await self.json
185185
if json is None:
186186
return None
187-
return get_field("message", json)
187+
return _get_field("message", json)
188188

189189
@property
190190
async def messages(self) -> Optional[Tuple[str, ...]]:

0 commit comments

Comments
 (0)