locust 2.33.2.dev9__py3-none-any.whl → 2.33.2.dev15__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- locust/_version.py +2 -2
- locust/contrib/fasthttp.py +1 -1
- locust/runners.py +3 -3
- locust/stats.py +4 -7
- {locust-2.33.2.dev9.dist-info → locust-2.33.2.dev15.dist-info}/METADATA +1 -1
- {locust-2.33.2.dev9.dist-info → locust-2.33.2.dev15.dist-info}/RECORD +9 -9
- {locust-2.33.2.dev9.dist-info → locust-2.33.2.dev15.dist-info}/WHEEL +0 -0
- {locust-2.33.2.dev9.dist-info → locust-2.33.2.dev15.dist-info}/entry_points.txt +0 -0
- {locust-2.33.2.dev9.dist-info → locust-2.33.2.dev15.dist-info}/licenses/LICENSE +0 -0
locust/_version.py
CHANGED
@@ -17,5 +17,5 @@ __version__: str
|
|
17
17
|
__version_tuple__: VERSION_TUPLE
|
18
18
|
version_tuple: VERSION_TUPLE
|
19
19
|
|
20
|
-
__version__ = version = '2.33.2.
|
21
|
-
__version_tuple__ = version_tuple = (2, 33, 2, '
|
20
|
+
__version__ = version = '2.33.2.dev15'
|
21
|
+
__version_tuple__ = version_tuple = (2, 33, 2, 'dev15')
|
locust/contrib/fasthttp.py
CHANGED
@@ -471,7 +471,7 @@ class FastHttpUser(User):
|
|
471
471
|
separator = "&" if "?" in url else "?"
|
472
472
|
if name is None:
|
473
473
|
name = url + separator + "_=..."
|
474
|
-
with self.rest(method, f"{url}{separator}_={int(time.time()*1000)}", name=name, **kwargs) as resp:
|
474
|
+
with self.rest(method, f"{url}{separator}_={int(time.time() * 1000)}", name=name, **kwargs) as resp:
|
475
475
|
yield resp
|
476
476
|
|
477
477
|
|
locust/runners.py
CHANGED
@@ -209,9 +209,9 @@ class Runner:
|
|
209
209
|
new_users: list[User] = []
|
210
210
|
while n < spawn_count:
|
211
211
|
new_user = self.user_classes_by_name[user_class](self.environment)
|
212
|
-
assert hasattr(
|
213
|
-
|
214
|
-
)
|
212
|
+
assert hasattr(new_user, "environment"), (
|
213
|
+
f"Attribute 'environment' is missing on user {user_class}. Perhaps you defined your own __init__ and forgot to call the base constructor? (super().__init__(*args, **kwargs))"
|
214
|
+
)
|
215
215
|
new_user.start(self.user_greenlets)
|
216
216
|
new_users.append(new_user)
|
217
217
|
n += 1
|
locust/stats.py
CHANGED
@@ -827,7 +827,7 @@ def get_stats_summary(stats: RequestStats, current=True) -> list[str]:
|
|
827
827
|
("%-" + str(STATS_TYPE_WIDTH) + "s %-" + str(name_column_width) + "s %7s %12s |%7s %7s %7s%7s | %7s %11s")
|
828
828
|
% ("Type", "Name", "# reqs", "# fails", "Avg", "Min", "Max", "Med", "req/s", "failures/s")
|
829
829
|
)
|
830
|
-
separator = f'
|
830
|
+
separator = f"{'-' * STATS_TYPE_WIDTH}|{'-' * (name_column_width)}|{'-' * 7}|{'-' * 13}|{'-' * 7}|{'-' * 7}|{'-' * 7}|{'-' * 7}|{'-' * 8}|{'-' * 11}"
|
831
831
|
summary.append(separator)
|
832
832
|
for key in sorted(stats.entries.keys()):
|
833
833
|
r = stats.entries[key]
|
@@ -850,14 +850,11 @@ def get_percentile_stats_summary(stats: RequestStats) -> list[str]:
|
|
850
850
|
summary = ["Response time percentiles (approximated)"]
|
851
851
|
headers = ("Type", "Name") + tuple(get_readable_percentiles(PERCENTILES_TO_REPORT)) + ("# reqs",)
|
852
852
|
summary.append(
|
853
|
-
(
|
854
|
-
f"%-{str(STATS_TYPE_WIDTH)}s %-{str(STATS_NAME_WIDTH)}s %8s "
|
855
|
-
f"{' '.join(['%6s'] * len(PERCENTILES_TO_REPORT))}"
|
856
|
-
)
|
853
|
+
(f"%-{str(STATS_TYPE_WIDTH)}s %-{str(STATS_NAME_WIDTH)}s %8s {' '.join(['%6s'] * len(PERCENTILES_TO_REPORT))}")
|
857
854
|
% headers
|
858
855
|
)
|
859
856
|
separator = (
|
860
|
-
f'
|
857
|
+
f"{'-' * STATS_TYPE_WIDTH}|{'-' * STATS_NAME_WIDTH}|{'-' * 8}|{('-' * 6 + '|') * len(PERCENTILES_TO_REPORT)}"
|
861
858
|
)[:-1]
|
862
859
|
summary.append(separator)
|
863
860
|
for key in sorted(stats.entries.keys()):
|
@@ -880,7 +877,7 @@ def print_error_report(stats: RequestStats) -> None:
|
|
880
877
|
def get_error_report_summary(stats) -> list[str]:
|
881
878
|
summary = ["Error report"]
|
882
879
|
summary.append("%-18s %-100s" % ("# occurrences", "Error"))
|
883
|
-
separator = f'
|
880
|
+
separator = f"{'-' * 18}|{'-' * ((80 + STATS_NAME_WIDTH) - 19)}"
|
884
881
|
summary.append(separator)
|
885
882
|
for error in stats.errors.values():
|
886
883
|
summary.append("%-18i %-100s" % (error.occurrences, error.to_name()))
|
@@ -1,6 +1,6 @@
|
|
1
1
|
locust/__init__.py,sha256=aWeuBPUxONjwNm1xp4v8L4BO14SuYLjscIiwJVX1Ui4,1746
|
2
2
|
locust/__main__.py,sha256=vBQ82334kX06ImDbFlPFgiBRiLIinwNk3z8Khs6hd74,31
|
3
|
-
locust/_version.py,sha256=
|
3
|
+
locust/_version.py,sha256=3ep2-0wUPc_Lww_QOAwz7fdBnFjjXXs_TdIBOZpwJ78,528
|
4
4
|
locust/argument_parser.py,sha256=ruSJcY4ouERwVopHvHDK-obQD6nlRKDqjLLwje2SH9k,32806
|
5
5
|
locust/clients.py,sha256=LHAYjaoRjMXwdOB8KBUYRH9-8Uk4F8NvUsDy5UTxKkA,19352
|
6
6
|
locust/debug.py,sha256=7CCm8bIg44uGH2wqBlo1rXBzV2VzwPicLxLewz8r5CQ,5099
|
@@ -13,12 +13,12 @@ locust/input_events.py,sha256=ZIyePyAMuA_YFYWg18g_pE4kwuQV3RbEB250MzXRwjY,3314
|
|
13
13
|
locust/log.py,sha256=5E2ZUOa3V4sfCqa-470Gle1Ik9L5nxYitsjEB9tRwE0,3455
|
14
14
|
locust/main.py,sha256=LHqxXz8MBueEmMghUPzK-N9MDCnvY0mCy-Ef7MsIPYI,27910
|
15
15
|
locust/py.typed,sha256=gkWLl8yD4mIZnNYYAIRM8g9VarLvWmTAFeUfEbxJLBw,65
|
16
|
-
locust/runners.py,sha256=
|
16
|
+
locust/runners.py,sha256=62ozCb3S7LetBoOMO1T_L5CuaCpzxqGsjijrV-H71QY,70617
|
17
17
|
locust/shape.py,sha256=t-lwBS8LOjWcKXNL7j2U3zroIXJ1b0fazUwpRYQOKXw,1973
|
18
|
-
locust/stats.py,sha256=
|
18
|
+
locust/stats.py,sha256=soIIvzxOYrEb-CUvLqDgYcoK9XKAX31zE1XkgPWWSQE,46023
|
19
19
|
locust/web.py,sha256=oVHqJ_vPQ-gLzMZgc8RwqG44DQ6nzbXpta78ihtVCjo,30122
|
20
20
|
locust/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
21
|
-
locust/contrib/fasthttp.py,sha256=
|
21
|
+
locust/contrib/fasthttp.py,sha256=lB1t8syshdpJDrNnrN6j00FF4TszdYY8YUfdg-9mwwE,29275
|
22
22
|
locust/contrib/mongodb.py,sha256=1seUYgJOaNKwybYOP9PUEVhgl8hGy-G33f8lFj3R8W8,1246
|
23
23
|
locust/contrib/postgres.py,sha256=OuMWnGYN10K65Tq2axVESEW25Y0g5gJb0rK90jkcCJg,1230
|
24
24
|
locust/rpc/__init__.py,sha256=5YOu-58XSnt-oWWNATgXLTNdYoDkkngwHNXprxkWKSM,99
|
@@ -50,8 +50,8 @@ locust/webui/dist/assets/graphs-light.png,sha256=7L6pOehXqCojQclzeP91l-LskFQAw_n
|
|
50
50
|
locust/webui/dist/assets/index-WFZ1ZQnf.js,sha256=B7la-VgQdCNSpDgrlcZmfOvmT6li_fNBmJNHS_PMxjc,1679863
|
51
51
|
locust/webui/dist/assets/testruns-dark.png,sha256=np6MvpgJ2gkKQ66SOmukLtjsMtHqTSr5dNfza-2XtCo,267621
|
52
52
|
locust/webui/dist/assets/testruns-light.png,sha256=iLAxBZh3kRsfGkcB1-1KSAbFgGji43IqiUrYuJlUoPk,276839
|
53
|
-
locust-2.33.2.
|
54
|
-
locust-2.33.2.
|
55
|
-
locust-2.33.2.
|
56
|
-
locust-2.33.2.
|
57
|
-
locust-2.33.2.
|
53
|
+
locust-2.33.2.dev15.dist-info/METADATA,sha256=_iaMXShtPlYFc8nlsavboWqUTMHXAm7rkb7U1JBQZcs,9638
|
54
|
+
locust-2.33.2.dev15.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
55
|
+
locust-2.33.2.dev15.dist-info/entry_points.txt,sha256=RAdt8Ku-56m7bFjmdj-MBhbF6h4NX7tVODR9QNnOg0E,44
|
56
|
+
locust-2.33.2.dev15.dist-info/licenses/LICENSE,sha256=5hnz-Vpj0Z3kSCQl0LzV2hT1TLc4LHcbpBp3Cy-EuyM,1110
|
57
|
+
locust-2.33.2.dev15.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|