locust 2.31.7.dev6__py3-none-any.whl → 2.31.7.dev12__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/web.py +10 -4
- {locust-2.31.7.dev6.dist-info → locust-2.31.7.dev12.dist-info}/METADATA +1 -1
- {locust-2.31.7.dev6.dist-info → locust-2.31.7.dev12.dist-info}/RECORD +7 -7
- {locust-2.31.7.dev6.dist-info → locust-2.31.7.dev12.dist-info}/LICENSE +0 -0
- {locust-2.31.7.dev6.dist-info → locust-2.31.7.dev12.dist-info}/WHEEL +0 -0
- {locust-2.31.7.dev6.dist-info → locust-2.31.7.dev12.dist-info}/entry_points.txt +0 -0
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.
|
17
|
+
__version__ = "2.31.7.dev12"
|
18
18
|
version = __version__
|
19
|
-
__version_tuple__ = (2, 31, 7, "
|
19
|
+
__version_tuple__ = (2, 31, 7, "dev12")
|
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
|
-
|
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
|
locust/__init__.py,sha256=Jit8eNUrwuMLqavyFvMZr69e61DILq_KB4yT4MciScw,1681
|
2
2
|
locust/__main__.py,sha256=vBQ82334kX06ImDbFlPFgiBRiLIinwNk3z8Khs6hd74,31
|
3
|
-
locust/_version.py,sha256=
|
3
|
+
locust/_version.py,sha256=h-nuu1au8xw1upDdwKo-8jqqOiaMdHWn6-5UsFkYTnM,460
|
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=
|
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.
|
51
|
-
locust-2.31.7.
|
52
|
-
locust-2.31.7.
|
53
|
-
locust-2.31.7.
|
54
|
-
locust-2.31.7.
|
50
|
+
locust-2.31.7.dev12.dist-info/LICENSE,sha256=78XGpIn3fHVBfaxlPNUfjVufSN7QsdhpJMRJHv2AFpo,1095
|
51
|
+
locust-2.31.7.dev12.dist-info/METADATA,sha256=VztDuexWFO8AXi6YH8GINZHxBJP7fYJjViMowgV6I5I,7725
|
52
|
+
locust-2.31.7.dev12.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
53
|
+
locust-2.31.7.dev12.dist-info/entry_points.txt,sha256=RhIxlLwU_Ae_WjimS5COUDLagdCh6IOMyLtgaQxNmlM,43
|
54
|
+
locust-2.31.7.dev12.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|