locust 2.39.2.dev5__py3-none-any.whl → 2.39.2.dev7__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/clients.py +10 -8
- {locust-2.39.2.dev5.dist-info → locust-2.39.2.dev7.dist-info}/METADATA +1 -1
- {locust-2.39.2.dev5.dist-info → locust-2.39.2.dev7.dist-info}/RECORD +7 -7
- {locust-2.39.2.dev5.dist-info → locust-2.39.2.dev7.dist-info}/WHEEL +0 -0
- {locust-2.39.2.dev5.dist-info → locust-2.39.2.dev7.dist-info}/entry_points.txt +0 -0
- {locust-2.39.2.dev5.dist-info → locust-2.39.2.dev7.dist-info}/licenses/LICENSE +0 -0
locust/_version.py
CHANGED
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '2.39.2.
|
|
32
|
-
__version_tuple__ = version_tuple = (2, 39, 2, '
|
|
31
|
+
__version__ = version = '2.39.2.dev7'
|
|
32
|
+
__version_tuple__ = version_tuple = (2, 39, 2, 'dev7')
|
|
33
33
|
|
|
34
34
|
__commit_id__ = commit_id = None
|
locust/clients.py
CHANGED
|
@@ -185,18 +185,20 @@ class HttpSession(requests.Session):
|
|
|
185
185
|
name = self.request_name
|
|
186
186
|
|
|
187
187
|
# prepend url with hostname unless it's already an absolute URL
|
|
188
|
-
|
|
188
|
+
complete_url = self._build_url(url)
|
|
189
189
|
|
|
190
190
|
start_time = time.time()
|
|
191
191
|
start_perf_counter = time.perf_counter()
|
|
192
|
-
response = self._send_request_safe_mode(method,
|
|
192
|
+
response = self._send_request_safe_mode(method, complete_url, data=data, json=json, **kwargs)
|
|
193
193
|
response_time = (time.perf_counter() - start_perf_counter) * 1000
|
|
194
194
|
|
|
195
|
-
request_before_redirect
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
195
|
+
if request_before_redirect := (response.history and response.history[0] or response).request:
|
|
196
|
+
complete_url = str(request_before_redirect.url)
|
|
197
|
+
if not name:
|
|
198
|
+
name = request_before_redirect.path_url
|
|
199
|
+
else: # in rare cases, such as ProtocolError('Response ended prematurely'), response.request may be None
|
|
200
|
+
if not name:
|
|
201
|
+
name = str(url)
|
|
200
202
|
|
|
201
203
|
if self.user:
|
|
202
204
|
context = {**self.user.context(), **context}
|
|
@@ -210,7 +212,7 @@ class HttpSession(requests.Session):
|
|
|
210
212
|
"response": response,
|
|
211
213
|
"exception": None,
|
|
212
214
|
"start_time": start_time,
|
|
213
|
-
"url":
|
|
215
|
+
"url": complete_url,
|
|
214
216
|
}
|
|
215
217
|
|
|
216
218
|
# get the length of the content, but if the argument stream is set to True, we take
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
locust/__init__.py,sha256=HadpgGidiyCDPSKwkxrk1Qw6eB7dTmftNJVftuJzAiw,1876
|
|
2
2
|
locust/__main__.py,sha256=vBQ82334kX06ImDbFlPFgiBRiLIinwNk3z8Khs6hd74,31
|
|
3
|
-
locust/_version.py,sha256=
|
|
3
|
+
locust/_version.py,sha256=xCnc6JIZRn3Y_NM7U752CyBH_qVdcn8tDuGucE4g7Us,719
|
|
4
4
|
locust/argument_parser.py,sha256=t6mAoK9u13DxC9UH-alVqS6fFABFTyNWSJG89yQ4QQQ,33056
|
|
5
|
-
locust/clients.py,sha256=
|
|
5
|
+
locust/clients.py,sha256=CeyTYgKuASZS6QKc71T4V3bqYPGlJr3Ef_i6qP07gTQ,19498
|
|
6
6
|
locust/debug.py,sha256=7CCm8bIg44uGH2wqBlo1rXBzV2VzwPicLxLewz8r5CQ,5099
|
|
7
7
|
locust/dispatch.py,sha256=prdwtb9EoN4A9klgiKgWuwQmvFB8hEuFHOK6ot62AJI,16202
|
|
8
8
|
locust/env.py,sha256=PypNHmEFBhGBk9dU6pZ2cL5L0TThYejaGWW16RO3ZNQ,13203
|
|
@@ -55,8 +55,8 @@ locust/webui/dist/assets/index-BjqxSg7R.js,sha256=3JyrKWfAg8LlTy2bxAJh73c6njNPhN
|
|
|
55
55
|
locust/webui/dist/assets/terminal.gif,sha256=iw80LO2u0dnf4wpGfFJZauBeKTcSpw9iUfISXT2nEF4,75302
|
|
56
56
|
locust/webui/dist/assets/testruns-dark.png,sha256=G4p2VZSBuuqF4neqUaPSshIp5OKQJ_Bvb69Luj6XuVs,125231
|
|
57
57
|
locust/webui/dist/assets/testruns-light.png,sha256=JinGDiiBPOkhpfF-XCbmQqhRInqItrjrBTLKt5MlqVI,130301
|
|
58
|
-
locust-2.39.2.
|
|
59
|
-
locust-2.39.2.
|
|
60
|
-
locust-2.39.2.
|
|
61
|
-
locust-2.39.2.
|
|
62
|
-
locust-2.39.2.
|
|
58
|
+
locust-2.39.2.dev7.dist-info/METADATA,sha256=0k7x7Fy6OQ-4LIBo3ICcygSBTZ6Uv98CdCpSS-BQfPo,9562
|
|
59
|
+
locust-2.39.2.dev7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
60
|
+
locust-2.39.2.dev7.dist-info/entry_points.txt,sha256=RAdt8Ku-56m7bFjmdj-MBhbF6h4NX7tVODR9QNnOg0E,44
|
|
61
|
+
locust-2.39.2.dev7.dist-info/licenses/LICENSE,sha256=5hnz-Vpj0Z3kSCQl0LzV2hT1TLc4LHcbpBp3Cy-EuyM,1110
|
|
62
|
+
locust-2.39.2.dev7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|