locust 2.35.1.dev28__py3-none-any.whl → 2.35.1.dev30__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
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '2.35.1.dev28'
21
- __version_tuple__ = version_tuple = (2, 35, 1, 'dev28')
20
+ __version__ = version = '2.35.1.dev30'
21
+ __version_tuple__ = version_tuple = (2, 35, 1, 'dev30')
locust/web.py CHANGED
@@ -277,6 +277,9 @@ class WebUI:
277
277
  err_msg = "Valid run_time formats are : 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc."
278
278
  logger.error(err_msg)
279
279
  return jsonify({"success": False, "message": err_msg, "host": environment.host})
280
+ elif key == "profile":
281
+ environment.profile = str(request.form["profile"]) or None
282
+ parsed_options_dict[key] = environment.profile
280
283
  elif key in parsed_options_dict:
281
284
  # update the value in environment.parsed_options, but dont change the type.
282
285
  parsed_options_value = parsed_options_dict[key]
@@ -714,6 +717,7 @@ class WebUI:
714
717
  "users": users,
715
718
  "percentiles_to_chart": stats.PERCENTILES_TO_CHART,
716
719
  "percentiles_to_statistics": stats.PERCENTILES_TO_STATISTICS,
720
+ "profile": self.environment.profile,
717
721
  }
718
722
 
719
723
  self.template_args = {**self.template_args, **new_template_args}