locust 2.31.7.dev6__py3-none-any.whl → 2.31.7.dev8__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
@@ -14,7 +14,7 @@ __version_tuple__: VERSION_TUPLE
14
14
  version_tuple: VERSION_TUPLE
15
15
 
16
16
 
17
- __version__ = "2.31.7.dev6"
17
+ __version__ = "2.31.7.dev8"
18
18
  version = __version__
19
- __version_tuple__ = (2, 31, 7, "dev6")
19
+ __version_tuple__ = (2, 31, 7, "dev8")
20
20
  version_tuple = __version_tuple__
locust/web.py CHANGED
@@ -135,6 +135,11 @@ class WebUI:
135
135
  # ensures static js files work on Windows
136
136
  mimetypes.add_type("application/javascript", ".js")
137
137
 
138
+ if self.web_login:
139
+ self._login_manager = LoginManager()
140
+ self._login_manager.init_app(self.app)
141
+ self._login_manager.login_view = "login"
142
+
138
143
  if environment.runner:
139
144
  self.update_template_args()
140
145
  if not delayed_start:
@@ -516,13 +521,14 @@ class WebUI:
516
521
  @property
517
522
  def login_manager(self):
518
523
  if self.web_login:
519
- login_manager = LoginManager()
520
- login_manager.init_app(self.app)
521
- login_manager.login_view = "login"
522
- return login_manager
524
+ return self._login_manager
523
525
 
524
526
  raise AttributeError("The login_manager is only available with --web-login.\n")
525
527
 
528
+ @login_manager.setter
529
+ def login_manager(self, value):
530
+ self._login_manager = value
531
+
526
532
  def start(self):
527
533
  self.greenlet = gevent.spawn(self.start_server)
528
534
  self.greenlet.link_exception(greenlet_exception_handler)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: locust
3
- Version: 2.31.7.dev6
3
+ Version: 2.31.7.dev8
4
4
  Summary: Developer-friendly load testing framework
5
5
  Home-page: https://locust.io/
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  locust/__init__.py,sha256=Jit8eNUrwuMLqavyFvMZr69e61DILq_KB4yT4MciScw,1681
2
2
  locust/__main__.py,sha256=vBQ82334kX06ImDbFlPFgiBRiLIinwNk3z8Khs6hd74,31
3
- locust/_version.py,sha256=ZQG-cWwDmVi3EosVUiSfU27AMZHuFzUCBTa-Nb9rPuc,458
3
+ locust/_version.py,sha256=5behDNp5CPxZh_tx28MZyxeIXF11-3XxmeoDl1-z9x4,458
4
4
  locust/argument_parser.py,sha256=V0EI7vVvAFLX68ntjRg6qGr2hXSLJgQ0y743zvurwA8,29008
5
5
  locust/clients.py,sha256=XK-xabq2_5GZKMEjebDobvEjeBTtCs8h2EelL7s68Qs,19346
6
6
  locust/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -39,7 +39,7 @@ locust/util/load_locustfile.py,sha256=hn70KcIG8jHmZyuKv2pcEmwgWtOEu24Efeji1KRYNU
39
39
  locust/util/rounding.py,sha256=5haxR8mKhATqag6WvPby-MSRRgIw5Ob6thbyvMYZM7o,92
40
40
  locust/util/timespan.py,sha256=Y0LtnhUq2Mq19p04u0XtBlYQ_-S2cRvwRdgru8W9WhA,986
41
41
  locust/util/url.py,sha256=s_W2PCxvxTWxWX0yUvp-8VBuQm881KwI5X9iifogZG4,321
42
- locust/web.py,sha256=figneTKyRa95SUii3k4OQI_oQOfG3wQqQpOhOjKxxXw,27671
42
+ locust/web.py,sha256=wwCIu2lCYGftuAwYZ2KXIXkkWGdgG0dDS5q3Tk6QEu0,27822
43
43
  locust/webui/dist/assets/favicon-dark.png,sha256=6zVkRtiRfU45qQGvEhf1cq2nNauFs_JW5SI79wT0YkM,2437
44
44
  locust/webui/dist/assets/favicon-light.png,sha256=VdG2GZyeTCOML7xfievupBP4EhmHoUqlVCw-tXqkvxU,2468
45
45
  locust/webui/dist/assets/index-DQd3Odi5.js,sha256=KSEsSxvrUSsT08C4AcXte5FdBqbQlsFeRfVCdw57h8g,1671822
@@ -47,8 +47,8 @@ locust/webui/dist/auth.html,sha256=lFK2hUASKiH4veqEKI8SVpVcv75L07iLgdsx1usfPRo,6
47
47
  locust/webui/dist/index.html,sha256=w1ar7WpzWHSVkgoL5n6IPCOvAgWfmOChoYofr2xsey0,654
48
48
  locust/webui/dist/report.html,sha256=bjpe_eyweJLqLk7REsQOdOPp7e8PoGRajD5P8gIJeNE,1472409
49
49
  poetry.lock,sha256=SYexv51dGkbiljj9e0x0LVzQ0-gxKn31hwhFTO2t298,205000
50
- locust-2.31.7.dev6.dist-info/LICENSE,sha256=78XGpIn3fHVBfaxlPNUfjVufSN7QsdhpJMRJHv2AFpo,1095
51
- locust-2.31.7.dev6.dist-info/METADATA,sha256=gtkqUBZnVM1qNvqlzqx2NrSlnsXOyaNur0FKIbNbFwQ,7724
52
- locust-2.31.7.dev6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
53
- locust-2.31.7.dev6.dist-info/entry_points.txt,sha256=RhIxlLwU_Ae_WjimS5COUDLagdCh6IOMyLtgaQxNmlM,43
54
- locust-2.31.7.dev6.dist-info/RECORD,,
50
+ locust-2.31.7.dev8.dist-info/LICENSE,sha256=78XGpIn3fHVBfaxlPNUfjVufSN7QsdhpJMRJHv2AFpo,1095
51
+ locust-2.31.7.dev8.dist-info/METADATA,sha256=e0BVX77F-xZXlJ7TwxTAydmZyZZfgOmZRzOETnnPb1g,7724
52
+ locust-2.31.7.dev8.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
53
+ locust-2.31.7.dev8.dist-info/entry_points.txt,sha256=RhIxlLwU_Ae_WjimS5COUDLagdCh6IOMyLtgaQxNmlM,43
54
+ locust-2.31.7.dev8.dist-info/RECORD,,