locust 2.31.6.dev23__py3-none-any.whl → 2.31.7.dev2__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.6.dev23"
17
+ __version__ = "2.31.7.dev2"
18
18
  version = __version__
19
- __version_tuple__ = (2, 31, 6, "dev23")
19
+ __version_tuple__ = (2, 31, 7, "dev2")
20
20
  version_tuple = __version_tuple__
locust/web.py CHANGED
@@ -135,11 +135,6 @@ 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(app)
141
- self.login_manager.login_view = "login"
142
-
143
138
  if environment.runner:
144
139
  self.update_template_args()
145
140
  if not delayed_start:
@@ -518,6 +513,16 @@ class WebUI:
518
513
 
519
514
  return {}, 201
520
515
 
516
+ @property
517
+ def login_manager(self):
518
+ 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
523
+
524
+ raise AttributeError("The login_manager is only available with --web-login.\n")
525
+
521
526
  def start(self):
522
527
  self.greenlet = gevent.spawn(self.start_server)
523
528
  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.6.dev23
3
+ Version: 2.31.7.dev2
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=3FQxbEoN10j7rp6II1kkgSQR7krGSnUlzw5wjpwZ-nM,460
3
+ locust/_version.py,sha256=Q9T435Pf18gHeY2PAKDvCCK7vTh7paqLEkfA3cHQgJM,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
@@ -38,7 +38,7 @@ locust/util/load_locustfile.py,sha256=hn70KcIG8jHmZyuKv2pcEmwgWtOEu24Efeji1KRYNU
38
38
  locust/util/rounding.py,sha256=5haxR8mKhATqag6WvPby-MSRRgIw5Ob6thbyvMYZM7o,92
39
39
  locust/util/timespan.py,sha256=Y0LtnhUq2Mq19p04u0XtBlYQ_-S2cRvwRdgru8W9WhA,986
40
40
  locust/util/url.py,sha256=s_W2PCxvxTWxWX0yUvp-8VBuQm881KwI5X9iifogZG4,321
41
- locust/web.py,sha256=uI9aD4wCjDxzFc5NR9pyeBsrCoZ6I0wcpKfVA8Gx454,27516
41
+ locust/web.py,sha256=figneTKyRa95SUii3k4OQI_oQOfG3wQqQpOhOjKxxXw,27671
42
42
  locust/webui/dist/assets/favicon-dark.png,sha256=6zVkRtiRfU45qQGvEhf1cq2nNauFs_JW5SI79wT0YkM,2437
43
43
  locust/webui/dist/assets/favicon-light.png,sha256=VdG2GZyeTCOML7xfievupBP4EhmHoUqlVCw-tXqkvxU,2468
44
44
  locust/webui/dist/assets/index-DQd3Odi5.js,sha256=KSEsSxvrUSsT08C4AcXte5FdBqbQlsFeRfVCdw57h8g,1671822
@@ -46,8 +46,8 @@ locust/webui/dist/auth.html,sha256=lFK2hUASKiH4veqEKI8SVpVcv75L07iLgdsx1usfPRo,6
46
46
  locust/webui/dist/index.html,sha256=w1ar7WpzWHSVkgoL5n6IPCOvAgWfmOChoYofr2xsey0,654
47
47
  locust/webui/dist/report.html,sha256=bjpe_eyweJLqLk7REsQOdOPp7e8PoGRajD5P8gIJeNE,1472409
48
48
  poetry.lock,sha256=SYexv51dGkbiljj9e0x0LVzQ0-gxKn31hwhFTO2t298,205000
49
- locust-2.31.6.dev23.dist-info/LICENSE,sha256=78XGpIn3fHVBfaxlPNUfjVufSN7QsdhpJMRJHv2AFpo,1095
50
- locust-2.31.6.dev23.dist-info/METADATA,sha256=0MK2BquJzHbDx51p60KQG3LzTrWDya0zuFyVVu5NHuU,7725
51
- locust-2.31.6.dev23.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
52
- locust-2.31.6.dev23.dist-info/entry_points.txt,sha256=RhIxlLwU_Ae_WjimS5COUDLagdCh6IOMyLtgaQxNmlM,43
53
- locust-2.31.6.dev23.dist-info/RECORD,,
49
+ locust-2.31.7.dev2.dist-info/LICENSE,sha256=78XGpIn3fHVBfaxlPNUfjVufSN7QsdhpJMRJHv2AFpo,1095
50
+ locust-2.31.7.dev2.dist-info/METADATA,sha256=C92_BE2_cXGWCay9DKJEkvaJ2_e2AhAr7fmIT7gCMes,7724
51
+ locust-2.31.7.dev2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
52
+ locust-2.31.7.dev2.dist-info/entry_points.txt,sha256=RhIxlLwU_Ae_WjimS5COUDLagdCh6IOMyLtgaQxNmlM,43
53
+ locust-2.31.7.dev2.dist-info/RECORD,,