locust 2.26.0__py3-none-any.whl → 2.26.1.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 CHANGED
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '2.26.0'
16
- __version_tuple__ = version_tuple = (2, 26, 0)
15
+ __version__ = version = '2.26.1.dev7'
16
+ __version_tuple__ = version_tuple = (2, 26, 1, 'dev7')
locust/dispatch.py CHANGED
@@ -100,8 +100,7 @@ class UsersDispatcher(Iterator):
100
100
  self._no_user_to_spawn = False
101
101
 
102
102
  def get_current_user_count(self) -> int:
103
- # need to ignore type due to https://github.com/python/mypy/issues/1507
104
- return sum(map(sum, map(dict.values, self._users_on_workers.values()))) # type: ignore
103
+ return sum(map(sum, map(dict.values, self._users_on_workers.values())))
105
104
 
106
105
  @property
107
106
  def dispatch_in_progress(self):
@@ -449,5 +448,4 @@ class UsersDispatcher(Iterator):
449
448
  The implementation was profiled and compared to other implementations such as dict-comprehensions
450
449
  and the one below is the most efficient.
451
450
  """
452
- # type is ignored due to: https://github.com/python/mypy/issues/1507
453
- return dict(zip(users_on_workers.keys(), map(dict.copy, users_on_workers.values()))) # type: ignore
451
+ return dict(zip(users_on_workers.keys(), map(dict.copy, users_on_workers.values())))
locust/rpc/protocol.py CHANGED
@@ -5,7 +5,7 @@ import datetime
5
5
  import msgpack
6
6
 
7
7
  try:
8
- from bson import ObjectId # type: ignore
8
+ from bson import ObjectId
9
9
  except ImportError:
10
10
 
11
11
  class ObjectId: # type: ignore
locust/runners.py CHANGED
@@ -345,10 +345,10 @@ class Runner:
345
345
  return
346
346
  elif self.shape_last_tick != current_tick:
347
347
  if len(current_tick) == 2:
348
- user_count, spawn_rate = current_tick # type: ignore
348
+ user_count, spawn_rate = current_tick
349
349
  user_classes = None
350
350
  else:
351
- user_count, spawn_rate, user_classes = current_tick # type: ignore
351
+ user_count, spawn_rate, user_classes = current_tick
352
352
  logger.info("Shape test updating to %d users at %.2f spawn rate" % (user_count, spawn_rate))
353
353
  # TODO: This `self.start()` call is blocking until the ramp-up is completed. This can leads
354
354
  # to unexpected behaviours such as the one in the following example:
@@ -1453,7 +1453,7 @@ class WorkerRunner(DistributedRunner):
1453
1453
 
1454
1454
 
1455
1455
  def _format_user_classes_count_for_log(user_classes_count: dict[str, int]) -> str:
1456
- return "{} ({} total users)".format(
1456
+ return "{} ({} total users)".format( # noqa: UP032
1457
1457
  json.dumps(dict(sorted(user_classes_count.items(), key=itemgetter(0)))),
1458
1458
  sum(user_classes_count.values()),
1459
1459
  )
@@ -1,10 +1,8 @@
1
1
  import os
2
2
  import random
3
3
  import time
4
-
5
4
  from contextlib import contextmanager
6
5
 
7
-
8
6
  MOCK_LOCUSTFILE_CONTENT = '''
9
7
  """This is a mock locust file for unit testing"""
10
8
 
@@ -4129,7 +4129,7 @@ def _aggregate_dispatched_users(d: dict[str, dict[str, int]]) -> dict[str, int]:
4129
4129
 
4130
4130
 
4131
4131
  def _user_count(d: dict[str, dict[str, int]]) -> int:
4132
- return sum(map(sum, map(dict.values, d.values()))) # type: ignore
4132
+ return sum(map(sum, map(dict.values, d.values())))
4133
4133
 
4134
4134
 
4135
4135
  def _user_count_on_worker(d: dict[str, dict[str, int]], worker_node_id: str) -> int:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: locust
3
- Version: 2.26.0
3
+ Version: 2.26.1.dev7
4
4
  Summary: Developer friendly load testing framework
5
5
  License: MIT
6
6
  Project-URL: Homepage, https://github.com/locustio/locust
@@ -1,10 +1,10 @@
1
1
  locust/__init__.py,sha256=g6oA-Ba_hs3gLWVf5MKJ1mvfltI8MFnDWG8qslqm8yg,1402
2
2
  locust/__main__.py,sha256=vBQ82334kX06ImDbFlPFgiBRiLIinwNk3z8Khs6hd74,31
3
- locust/_version.py,sha256=fMCGN_nkzccFJR0ERimrQlI738fFJWzDZ_f2UP5Pbqs,413
3
+ locust/_version.py,sha256=3veUhUmsTLjhnzaNLqgswdPQDWWnCSjT1jJuKb3nAJQ,426
4
4
  locust/argument_parser.py,sha256=gOyB1rqEEFNVkhGa-oAuCxf573aB_lATSY9w6FlCbHk,32008
5
5
  locust/clients.py,sha256=-vKHkTkUQwYUXUpuROvHdiAbSbOPY8s4V7xFDF5KU1A,14819
6
6
  locust/debug.py,sha256=We6Z9W0btkKSc7PxWmrZx-xMynvOOsKhG6jmDgQin0g,5134
7
- locust/dispatch.py,sha256=t1gMvCdE7SFq7OIyYEhmKi5nW_8_d__iNUJgf4P_c6c,19502
7
+ locust/dispatch.py,sha256=S2pAMOlbadOrtMTLTDkq1Pvqes3HVUdZl-K5SDss6ig,19313
8
8
  locust/env.py,sha256=nd6ui1bv6n-kkLkP3r61ZkskDY627dsKOAkYHhtOW7o,12472
9
9
  locust/event.py,sha256=xgNKbcejxy1TNUfIdgV75KgD2_BOwQmvjrJ4hWuydRw,7740
10
10
  locust/exception.py,sha256=jGgJ32ubuf4pWdlaVOkbh2Y0LlG0_DHi-lv3ib8ppOE,1791
@@ -13,14 +13,14 @@ locust/input_events.py,sha256=WZtjFMJQpPszxgqwZkxzRBOhygHIersHsvt-9S34M9k,3271
13
13
  locust/log.py,sha256=2IVp9YL4ZPfWdj3sBFuOHfgneg3g7m7tUGR-sy2s3E8,3155
14
14
  locust/main.py,sha256=emuULU-y1SmHTLcLqfOiZn_SnZzWDcf_IYRmB4Yc348,28194
15
15
  locust/py.typed,sha256=gkWLl8yD4mIZnNYYAIRM8g9VarLvWmTAFeUfEbxJLBw,65
16
- locust/runners.py,sha256=OybWcJfhrr_UVWWPfmpiDM3fQF_mrR3D_GcAMArWt78,67970
16
+ locust/runners.py,sha256=CsT0J1RDANceL3BfF7L0nSvYdk9O20vGRy4gtef_Urw,67953
17
17
  locust/shape.py,sha256=t-lwBS8LOjWcKXNL7j2U3zroIXJ1b0fazUwpRYQOKXw,1973
18
18
  locust/stats.py,sha256=l2cxxVre8dvA4MIOD_ZKNj_fYySz5gTGC2f9Rc4-CL0,46134
19
19
  locust/web.py,sha256=tgTRfzAxKBxudjhLkQr5JGppoEOD6hcmZ-i_rGvwOlQ,28245
20
20
  locust/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
21
  locust/contrib/fasthttp.py,sha256=B_VofSuvb9cehQxlUZnLVvYAr2AquedxeALua4mVOuM,26749
22
22
  locust/rpc/__init__.py,sha256=nVGoHWFQxZjnhCDWjbgXIbmFbN9sizAjkhvSs9_642c,58
23
- locust/rpc/protocol.py,sha256=oHR1yHdg_OysxZ2os3HS5Rf5hRi7I0d-3LIvWAn2QF0,1298
23
+ locust/rpc/protocol.py,sha256=n-rb3GZQcAlldYDj4E4GuFGylYj_26GSS5U29meft5Y,1282
24
24
  locust/rpc/zmqrpc.py,sha256=7DLIXzkQr7992zmZwAqNgcqzm7LOQAOQtz0tUGv5-Gg,2637
25
25
  locust/static/chart.js,sha256=Aue4SxJZhv9I3k0Nr2uXTrdrLxsrX7x_a0d4u3a1e_Q,4796
26
26
  locust/static/echarts.common.min.js,sha256=2h6zIZeHk-eGAiC-qYvxv7uW5S1HcyM72K5FbcVhky4,620458
@@ -50,10 +50,10 @@ locust/templates/stats_data.html,sha256=MoBvJE41VtG3eriHkP4qWgQs3QNTsFTvS03aCenh
50
50
  locust/test/__init__.py,sha256=CaVC4yA4DnCO8EY3LbedPHFg86a9Lqlpe92JuiX3THw,396
51
51
  locust/test/fake_module1_for_env_test.py,sha256=dzGYWCr1SSkd8Yyo68paUNrCNW7YY_QgjRb7sM37gG0,164
52
52
  locust/test/fake_module2_for_env_test.py,sha256=dzGYWCr1SSkd8Yyo68paUNrCNW7YY_QgjRb7sM37gG0,164
53
- locust/test/mock_locustfile.py,sha256=N9sGjW-BmJ-J_x-5bEOR82VQ0DhR1hki313BHPOWq4g,1273
53
+ locust/test/mock_locustfile.py,sha256=4xgoAYlhvdIBjGsLFFN0abpTNM7k12iSkrfTPUQhAMQ,1271
54
54
  locust/test/mock_logging.py,sha256=qapKrKhTdlVc8foJB2Hxjn7SB6soaLeAj3VF4A6kZtw,806
55
55
  locust/test/test_debugging.py,sha256=omQ0w5_Xh1xuTBzkd3VavEIircwtlmoOEHcMInY67vU,1053
56
- locust/test/test_dispatch.py,sha256=i9fCVV-uYhB2ygIK5r_d3Zzqmxj4vy5X_p4VJiInsEM,167770
56
+ locust/test/test_dispatch.py,sha256=CIO10mC0FL8FjubV0jNZfd3q8EFQdZhLlm4QnN7HbPs,167754
57
57
  locust/test/test_env.py,sha256=l0fLl9nubdgzxwFNajmBkJvQc5cO5rOTE4p12lbCbs0,8919
58
58
  locust/test/test_fasthttp.py,sha256=jVA5wWjZxXYW6emzy-lfPC0AOabzT6rDCX0N7DPP9mc,30727
59
59
  locust/test/test_http.py,sha256=VQCVY0inLC0RS-V3E9WHL3vBLGokZjQt0zKSrTNlQmM,12536
@@ -95,9 +95,9 @@ locust/webui/dist/report.html,sha256=sOdZZVgZbqgu86BBCSQf3uQUYXgmgSnXF32JpnyAII8
95
95
  locust/webui/dist/assets/favicon.ico,sha256=IUl-rYqfpHdV38e-s0bkmFIeLS-n3Ug0DQxk-h202hI,8348
96
96
  locust/webui/dist/assets/index-941b6e82.js,sha256=G3n5R81Svt0HzbWaV3AV20jLWGLr4X50UZ-Adu2KcxU,1645614
97
97
  locust/webui/dist/assets/logo.png,sha256=EIVPqr6wE_yqguHaqFHIsH0ZACLSrvNWyYO7PbyIj4w,19299
98
- locust-2.26.0.dist-info/LICENSE,sha256=78XGpIn3fHVBfaxlPNUfjVufSN7QsdhpJMRJHv2AFpo,1095
99
- locust-2.26.0.dist-info/METADATA,sha256=nEAL6OBW_otmbuSOAv8kOQu8D17K-yvNUt_gwVkDtc4,7248
100
- locust-2.26.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
101
- locust-2.26.0.dist-info/entry_points.txt,sha256=RAdt8Ku-56m7bFjmdj-MBhbF6h4NX7tVODR9QNnOg0E,44
102
- locust-2.26.0.dist-info/top_level.txt,sha256=XSsjgPA8Ggf9TqKVbkwSqZFuPlZ085X13M9orDycE20,7
103
- locust-2.26.0.dist-info/RECORD,,
98
+ locust-2.26.1.dev7.dist-info/LICENSE,sha256=78XGpIn3fHVBfaxlPNUfjVufSN7QsdhpJMRJHv2AFpo,1095
99
+ locust-2.26.1.dev7.dist-info/METADATA,sha256=oYWSG2mlrlNKusKZA-2gpX6rhfhmMjBFiZfBWLcr3ms,7253
100
+ locust-2.26.1.dev7.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
101
+ locust-2.26.1.dev7.dist-info/entry_points.txt,sha256=RAdt8Ku-56m7bFjmdj-MBhbF6h4NX7tVODR9QNnOg0E,44
102
+ locust-2.26.1.dev7.dist-info/top_level.txt,sha256=XSsjgPA8Ggf9TqKVbkwSqZFuPlZ085X13M9orDycE20,7
103
+ locust-2.26.1.dev7.dist-info/RECORD,,