Skip to content

Commit

Permalink
Make it Black
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Aug 9, 2021
1 parent c87636e commit 55e2cf9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion locust_plugins/listeners.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def on_request(self, request_type, name, response_time, response_length, excepti
e = repr(exception)
except AttributeError:
e = f"{exception.__class__} (and it has no string representation)"
errortext = "Failed: " + e[:500].replace("\n"," ")
errortext = "Failed: " + e[:500].replace("\n", " ")
else:
errortext = ""
if not context:
Expand Down
2 changes: 1 addition & 1 deletion locust_plugins/transaction_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def _get_transactions_summary(cls):
]
+ locust.stats.get_readable_percentiles(locust.stats.PERCENTILES_TO_REPORT)
)
for tname in cls.completed_transactions: # pylint: disable=consider-using-dict-items
for tname in cls.completed_transactions: # pylint: disable=consider-using-dict-items
fields = []
# fill the field that holds request method
fields.append("Transaction")
Expand Down
1 change: 1 addition & 0 deletions locust_plugins/users/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import re
from json.decoder import JSONDecodeError


class RestUser(FastHttpUser):
"""
A convenience class for testing RESTful JSON endpoints.
Expand Down

0 comments on commit 55e2cf9

Please sign in to comment.