Skip to content

Commit

Permalink
pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Jan 29, 2022
1 parent 346b745 commit ef907eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions locust_plugins/users/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class RestUser(FastHttpUser):
def rest(self, method, url, **kwargs) -> Generator[RestResponseContextManager, None, None]:
headers = kwargs.pop("headers", {"Content-Type": "application/json", "Accept": "application/json"})
with self.client.request(method, url, catch_response=True, headers=headers, **kwargs) as resp:
resp: RestResponseContextManager
resp.js = None
if resp.text is None:
# round the response time to nearest second to improve error grouping
Expand Down

0 comments on commit ef907eb

Please sign in to comment.