locust 2.32.6.dev21__py3-none-any.whl → 2.32.7__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/__init__.py +4 -1
- locust/_version.py +2 -2
- locust/argument_parser.py +0 -1
- locust/contrib/fasthttp.py +1 -1
- locust/html.py +0 -3
- locust/main.py +2 -3
- locust/rpc/__init__.py +5 -0
- locust/runners.py +1 -1
- locust/user/__init__.py +7 -0
- locust/web.py +0 -1
- locust/webui/dist/assets/graphs-dark.png +0 -0
- locust/webui/dist/assets/graphs-light.png +0 -0
- locust/webui/dist/assets/{index-CwF7Fst2.js → index-CmqwOkja.js} +52 -40
- locust/webui/dist/assets/testruns-dark.png +0 -0
- locust/webui/dist/assets/testruns-light.png +0 -0
- locust/webui/dist/auth.html +1 -1
- locust/webui/dist/index.html +1 -1
- locust/webui/dist/report.html +7 -7
- {locust-2.32.6.dev21.dist-info → locust-2.32.7.dist-info}/METADATA +2 -2
- {locust-2.32.6.dev21.dist-info → locust-2.32.7.dist-info}/RECORD +23 -19
- {locust-2.32.6.dev21.dist-info → locust-2.32.7.dist-info}/LICENSE +0 -0
- {locust-2.32.6.dev21.dist-info → locust-2.32.7.dist-info}/WHEEL +0 -0
- {locust-2.32.6.dev21.dist-info → locust-2.32.7.dist-info}/entry_points.txt +0 -0
locust/__init__.py
CHANGED
@@ -5,7 +5,7 @@ if os.getenv("LOCUST_PLAYWRIGHT", None):
|
|
5
5
|
print("Uninstall trio package and remove the setting.")
|
6
6
|
try:
|
7
7
|
# preserve backwards compatibility for now
|
8
|
-
import trio
|
8
|
+
import trio # noqa: F401
|
9
9
|
except ModuleNotFoundError:
|
10
10
|
# dont show a massive callstack if trio is not installed
|
11
11
|
os._exit(1)
|
@@ -50,6 +50,9 @@ __all__ = (
|
|
50
50
|
"events",
|
51
51
|
"LoadTestShape",
|
52
52
|
"run_single_user",
|
53
|
+
"HttpLocust",
|
54
|
+
"Locust",
|
55
|
+
"__version__",
|
53
56
|
)
|
54
57
|
|
55
58
|
# Used for raising a DeprecationWarning if old Locust/HttpLocust is used
|
locust/_version.py
CHANGED
@@ -14,7 +14,7 @@ __version_tuple__: VERSION_TUPLE
|
|
14
14
|
version_tuple: VERSION_TUPLE
|
15
15
|
|
16
16
|
|
17
|
-
__version__ = "2.32.
|
17
|
+
__version__ = "2.32.7"
|
18
18
|
version = __version__
|
19
|
-
__version_tuple__ = (2, 32,
|
19
|
+
__version_tuple__ = (2, 32, 7)
|
20
20
|
version_tuple = __version_tuple__
|
locust/argument_parser.py
CHANGED
locust/contrib/fasthttp.py
CHANGED
@@ -3,7 +3,7 @@ from __future__ import annotations
|
|
3
3
|
from locust.env import Environment
|
4
4
|
from locust.exception import CatchResponseError, LocustError, ResponseError
|
5
5
|
from locust.user import User
|
6
|
-
from locust.util.deprecation import DeprecatedFastHttpLocustClass as FastHttpLocust
|
6
|
+
from locust.util.deprecation import DeprecatedFastHttpLocustClass as FastHttpLocust # noqa: F401
|
7
7
|
|
8
8
|
import json
|
9
9
|
import json as unshadowed_json # some methods take a named parameter called json
|
locust/html.py
CHANGED
locust/main.py
CHANGED
@@ -8,7 +8,6 @@ import gc
|
|
8
8
|
import importlib.metadata
|
9
9
|
import inspect
|
10
10
|
import itertools
|
11
|
-
import json
|
12
11
|
import logging
|
13
12
|
import os
|
14
13
|
import signal
|
@@ -39,12 +38,12 @@ from .util.load_locustfile import load_locustfile
|
|
39
38
|
|
40
39
|
# import external plugins if installed to allow for registering custom arguments etc
|
41
40
|
try:
|
42
|
-
import locust_plugins # pyright: ignore[reportMissingImports]
|
41
|
+
import locust_plugins # pyright: ignore[reportMissingImports] # noqa: F401
|
43
42
|
except ModuleNotFoundError as e:
|
44
43
|
if e.msg != "No module named 'locust_plugins'":
|
45
44
|
raise
|
46
45
|
try:
|
47
|
-
import locust_cloud # pyright: ignore[reportMissingImports]
|
46
|
+
import locust_cloud # pyright: ignore[reportMissingImports] # noqa: F401
|
48
47
|
|
49
48
|
locust_cloud_version = f" (locust-cloud {importlib.metadata.version('locust-cloud')})"
|
50
49
|
except ModuleNotFoundError as e:
|
locust/rpc/__init__.py
CHANGED
locust/runners.py
CHANGED
@@ -1002,7 +1002,7 @@ class MasterRunner(DistributedRunner):
|
|
1002
1002
|
elif msg.data != __version__ and msg.data != -1:
|
1003
1003
|
if msg.data[0:4] == __version__[0:4]:
|
1004
1004
|
logger.debug(
|
1005
|
-
f"A worker ({client_id}) running a different patch version ({msg.data}) connected, master version is {__version__}"
|
1005
|
+
f"A worker ({client_id}) running a different patch version ({repr(msg.data)}) connected, master version is {repr(__version__)}"
|
1006
1006
|
)
|
1007
1007
|
else:
|
1008
1008
|
logger.warning(
|
locust/user/__init__.py
CHANGED
locust/web.py
CHANGED
Binary file
|
Binary file
|