locust 2.26.1.dev16__tar.gz → 2.26.1.dev48__tar.gz

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.
Files changed (352) hide show
  1. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/.vscode/settings.json +6 -0
  2. {locust-2.26.1.dev16/locust.egg-info → locust-2.26.1.dev48}/PKG-INFO +2 -2
  3. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/README.md +1 -1
  4. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/docs/changelog.rst +2 -2
  5. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/docs/configuration.rst +8 -6
  6. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/docs/custom-load-shape.rst +2 -2
  7. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/docs/extending-locust.rst +1 -7
  8. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/docs/increase-performance.rst +3 -3
  9. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/docs/index.rst +0 -1
  10. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/docs/quickstart.rst +3 -7
  11. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/docs/running-in-docker.rst +3 -18
  12. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/docs/testing-other-systems.rst +2 -2
  13. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/docs/what-is-locust.rst +6 -7
  14. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/docs/writing-a-locustfile.rst +10 -13
  15. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/_version.py +2 -2
  16. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/argument_parser.py +61 -150
  17. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/clients.py +1 -2
  18. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/main.py +1 -1
  19. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/runners.py +3 -7
  20. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/test/test_main.py +70 -29
  21. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/test/test_parser.py +35 -57
  22. {locust-2.26.1.dev16 → locust-2.26.1.dev48/locust.egg-info}/PKG-INFO +2 -2
  23. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust.egg-info/SOURCES.txt +0 -1
  24. locust-2.26.1.dev16/docs/running-cloud-integration.rst +0 -17
  25. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/.coveragerc +0 -0
  26. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/.dockerignore +0 -0
  27. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/.git-blame-ignore-revs +0 -0
  28. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/.gitattributes +0 -0
  29. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/.github/CONTRIBUTING.md +0 -0
  30. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/.github/ISSUE_TEMPLATE/bug.yml +0 -0
  31. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  32. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  33. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/.github/workflows/stale.yml +0 -0
  34. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/.github/workflows/tests.yml +0 -0
  35. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/.gitignore +0 -0
  36. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/.pre-commit-config.yaml +0 -0
  37. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/.readthedocs.yaml +0 -0
  38. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/.vscode/extensions.json +0 -0
  39. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/.vscode/launch.json +0 -0
  40. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/.vscode/launch_locust.json +0 -0
  41. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/CHANGELOG.md +0 -0
  42. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/Dockerfile +0 -0
  43. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/LICENSE +0 -0
  44. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/MANIFEST.in +0 -0
  45. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/Makefile +0 -0
  46. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/README +0 -0
  47. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/SECURITY.md +0 -0
  48. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/Vagrantfile +0 -0
  49. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/benchmarks/dispatch.py +0 -0
  50. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/docs/_static/theme-overrides.css +0 -0
  51. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/docs/api.rst +0 -0
  52. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/docs/conf.py +0 -0
  53. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/docs/developing-locust.rst +0 -0
  54. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/docs/further-reading.rst +0 -0
  55. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/docs/history.rst +0 -0
  56. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/docs/images/extend_modern_web_ui_cache_stats.png +0 -0
  57. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/docs/images/locust_workers.png +0 -0
  58. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/docs/images/number_of_users.png +0 -0
  59. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/docs/images/response_times.png +0 -0
  60. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/docs/images/total_requests_per_second.png +0 -0
  61. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/docs/images/userclass_picker_example.png +0 -0
  62. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/docs/images/webui-running-statistics.png +0 -0
  63. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/docs/images/webui-splash-screenshot.png +0 -0
  64. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/docs/installation.rst +0 -0
  65. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/docs/logging.rst +0 -0
  66. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/docs/requirements.txt +0 -0
  67. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/docs/retrieving-stats.rst +0 -0
  68. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/docs/running-distributed.rst +0 -0
  69. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/docs/running-in-debugger.rst +0 -0
  70. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/docs/running-without-web-ui.rst +0 -0
  71. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/docs/tasksets.rst +0 -0
  72. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/docs/use-as-lib.rst +0 -0
  73. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/add_command_line_argument.py +0 -0
  74. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/basic.py +0 -0
  75. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/browse_docs_sequence_test.py +0 -0
  76. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/browse_docs_test.py +0 -0
  77. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/custom_messages.py +0 -0
  78. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/custom_shape/double_wave.py +0 -0
  79. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/custom_shape/stages.py +0 -0
  80. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/custom_shape/staging_user_classes.py +0 -0
  81. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/custom_shape/step_load.py +0 -0
  82. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/custom_shape/wait_user_count.py +0 -0
  83. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/custom_wait_function.py +0 -0
  84. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/custom_xmlrpc_client/server.py +0 -0
  85. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/custom_xmlrpc_client/xmlrpc_locustfile.py +0 -0
  86. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/debugging.py +0 -0
  87. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/debugging_advanced.py +0 -0
  88. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/docker-compose/docker-compose.yml +0 -0
  89. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/dynamic_user_credentials.py +0 -0
  90. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/events.py +0 -0
  91. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/extend_modern_web_ui.py +0 -0
  92. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/extend_web_ui/extend.py +0 -0
  93. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/extend_web_ui/static/custom-stats-table.css +0 -0
  94. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/extend_web_ui/static/extend.js +0 -0
  95. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/extend_web_ui/templates/extend.html +0 -0
  96. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/fast_http_locust.py +0 -0
  97. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/grpc/grpc_user.py +0 -0
  98. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/grpc/hello.proto +0 -0
  99. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/grpc/hello_pb2.py +0 -0
  100. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/grpc/hello_pb2_grpc.py +0 -0
  101. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/grpc/hello_server.py +0 -0
  102. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/grpc/locustfile.py +0 -0
  103. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/locustfile.py +0 -0
  104. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/manual_stats_reporting.py +0 -0
  105. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/multiple_hosts.py +0 -0
  106. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/nested_inline_tasksets.py +0 -0
  107. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/rest.py +0 -0
  108. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/sdk_session_patching/session_patch_locustfile.py +0 -0
  109. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/semaphore_wait.py +0 -0
  110. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/stop_on_threshold.py +0 -0
  111. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/terraform/aws/README.md +0 -0
  112. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/terraform/aws/data_subnet.tf +0 -0
  113. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/terraform/aws/main.tf +0 -0
  114. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/terraform/aws/output.tf +0 -0
  115. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/terraform/aws/plan/basic.py +0 -0
  116. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/terraform/aws/provisioner.tf +0 -0
  117. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/terraform/aws/variables.tf +0 -0
  118. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/test_data_management.py +0 -0
  119. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/use_as_lib.py +0 -0
  120. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/vagrant/README.md +0 -0
  121. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/vagrant/supervisord.conf +0 -0
  122. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/web_ui_auth.py +0 -0
  123. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/web_ui_cache_stats.py +0 -0
  124. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/examples/worker_index.py +0 -0
  125. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/generate_changelog.py +0 -0
  126. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/__init__.py +0 -0
  127. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/__main__.py +0 -0
  128. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/contrib/__init__.py +0 -0
  129. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/contrib/fasthttp.py +0 -0
  130. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/debug.py +0 -0
  131. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/dispatch.py +0 -0
  132. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/env.py +0 -0
  133. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/event.py +0 -0
  134. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/exception.py +0 -0
  135. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/html.py +0 -0
  136. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/input_events.py +0 -0
  137. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/log.py +0 -0
  138. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/py.typed +0 -0
  139. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/rpc/__init__.py +0 -0
  140. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/rpc/protocol.py +0 -0
  141. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/rpc/zmqrpc.py +0 -0
  142. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/shape.py +0 -0
  143. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/static/chart.js +0 -0
  144. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/static/css/application.css +0 -0
  145. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/static/css/application.css.map +0 -0
  146. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/static/css/tables.css +0 -0
  147. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/static/css/tables.css.map +0 -0
  148. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/static/echarts.common.min.js +0 -0
  149. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/static/img/favicon.ico +0 -0
  150. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/static/img/logo.png +0 -0
  151. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/static/img/ui-screenshot-charts.png +0 -0
  152. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/static/img/ui-screenshot-start-test.png +0 -0
  153. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/static/img/ui-screenshot-stats.png +0 -0
  154. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/static/img/ui-screenshot-workers.png +0 -0
  155. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/static/jquery-1.11.3.min.js +0 -0
  156. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/static/jquery.jqote2.min.js +0 -0
  157. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/static/jquery.tools.min.js +0 -0
  158. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/static/locust.js +0 -0
  159. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/static/sass/_base.sass +0 -0
  160. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/static/sass/_mixins.sass +0 -0
  161. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/static/sass/application.sass +0 -0
  162. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/static/sass/tables.sass +0 -0
  163. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/static/tasks.js +0 -0
  164. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/static/vintage.js +0 -0
  165. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/stats.py +0 -0
  166. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/templates/index.html +0 -0
  167. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/templates/report.html +0 -0
  168. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/templates/stats_data.html +0 -0
  169. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/test/__init__.py +0 -0
  170. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/test/fake_module1_for_env_test.py +0 -0
  171. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/test/fake_module2_for_env_test.py +0 -0
  172. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/test/mock_locustfile.py +0 -0
  173. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/test/mock_logging.py +0 -0
  174. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/test/test_debugging.py +0 -0
  175. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/test/test_dispatch.py +0 -0
  176. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/test/test_env.py +0 -0
  177. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/test/test_fasthttp.py +0 -0
  178. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/test/test_http.py +0 -0
  179. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/test/test_interruptable_task.py +0 -0
  180. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/test/test_load_locustfile.py +0 -0
  181. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/test/test_locust_class.py +0 -0
  182. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/test/test_log.py +0 -0
  183. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/test/test_old_wait_api.py +0 -0
  184. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/test/test_runners.py +0 -0
  185. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/test/test_sequential_taskset.py +0 -0
  186. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/test/test_stats.py +0 -0
  187. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/test/test_tags.py +0 -0
  188. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/test/test_taskratio.py +0 -0
  189. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/test/test_users.py +0 -0
  190. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/test/test_util.py +0 -0
  191. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/test/test_wait_time.py +0 -0
  192. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/test/test_web.py +0 -0
  193. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/test/test_zmqrpc.py +0 -0
  194. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/test/testcases.py +0 -0
  195. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/test/util.py +0 -0
  196. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/user/__init__.py +0 -0
  197. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/user/inspectuser.py +0 -0
  198. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/user/sequential_taskset.py +0 -0
  199. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/user/task.py +0 -0
  200. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/user/users.py +0 -0
  201. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/user/wait_time.py +0 -0
  202. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/util/__init__.py +0 -0
  203. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/util/cache.py +0 -0
  204. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/util/deprecation.py +0 -0
  205. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/util/exception_handler.py +0 -0
  206. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/util/load_locustfile.py +0 -0
  207. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/util/rounding.py +0 -0
  208. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/util/timespan.py +0 -0
  209. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/web.py +0 -0
  210. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/.eslintrc +0 -0
  211. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/.gitignore +0 -0
  212. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/.prettierrc +0 -0
  213. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/auth.html +0 -0
  214. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/dev.html +0 -0
  215. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/dist/assets/favicon.ico +0 -0
  216. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/dist/assets/index-941b6e82.js +0 -0
  217. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/dist/assets/logo.png +0 -0
  218. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/dist/auth.html +0 -0
  219. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/dist/index.html +0 -0
  220. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/dist/report.html +0 -0
  221. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/index.html +0 -0
  222. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/package.json +0 -0
  223. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/public/assets/favicon.ico +0 -0
  224. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/public/assets/logo.png +0 -0
  225. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/public/report.html +0 -0
  226. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/App.test.tsx +0 -0
  227. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/App.tsx +0 -0
  228. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/DataTable/DataTable.test.tsx +0 -0
  229. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/DataTable/DataTable.tsx +0 -0
  230. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/ExceptionsTable/ExceptionsTable.tsx +0 -0
  231. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/FailuresTable/FailuresTable.tsx +0 -0
  232. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/FallbackRender/FallbackRender.test.tsx +0 -0
  233. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/FallbackRender/FallbackRender.tsx +0 -0
  234. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/Form/Form.tsx +0 -0
  235. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/Form/Select.tsx +0 -0
  236. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/Form/tests/Form.test.tsx +0 -0
  237. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/Form/tests/Select.test.tsx +0 -0
  238. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/Layout/Footer/About.tsx +0 -0
  239. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/Layout/Footer/Footer.tsx +0 -0
  240. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/Layout/Layout.tsx +0 -0
  241. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/Layout/Navbar/DarkLightToggle.tsx +0 -0
  242. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/Layout/Navbar/Navbar.tsx +0 -0
  243. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/Layout/Navbar/SwarmMonitor.test.tsx +0 -0
  244. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/Layout/Navbar/SwarmMonitor.tsx +0 -0
  245. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/LineChart/LineChart.test.tsx +0 -0
  246. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/LineChart/LineChart.tsx +0 -0
  247. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/LogViewer/LogViewer.tsx +0 -0
  248. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/LogViewer/tests/LogViewer.test.tsx +0 -0
  249. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/LogViewer/tests/useLogViewer.test.tsx +0 -0
  250. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/LogViewer/useLogViewer.ts +0 -0
  251. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/Modal/Modal.tsx +0 -0
  252. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/Reports/Reports.test.tsx +0 -0
  253. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/Reports/Reports.tsx +0 -0
  254. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/ResponseTimeTable/ResponseTimeTable.test.tsx +0 -0
  255. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/ResponseTimeTable/ResponseTimeTable.tsx +0 -0
  256. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/StateButtons/EditButton.tsx +0 -0
  257. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/StateButtons/NewTestButton.tsx +0 -0
  258. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/StateButtons/ResetButton.tsx +0 -0
  259. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/StateButtons/StateButtons.tsx +0 -0
  260. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/StateButtons/StopButton.tsx +0 -0
  261. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/StateButtons/tests/ResetButton.test.tsx +0 -0
  262. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/StateButtons/tests/StateButtons.test.tsx +0 -0
  263. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/StateButtons/tests/StopButton.test.tsx +0 -0
  264. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/StatsTable/StatsTable.tsx +0 -0
  265. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/SwarmCharts/SwarmCharts.tsx +0 -0
  266. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/SwarmForm/SwarmCustomParameters.tsx +0 -0
  267. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/SwarmForm/SwarmEditForm.tsx +0 -0
  268. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/SwarmForm/SwarmForm.tsx +0 -0
  269. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/SwarmForm/SwarmUserClassPicker.tsx +0 -0
  270. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/SwarmForm/tests/SwarmCustomParameters.test.tsx +0 -0
  271. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/SwarmForm/tests/SwarmEditForm.test.tsx +0 -0
  272. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/SwarmForm/tests/SwarmForm.test.tsx +0 -0
  273. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/SwarmForm/tests/SwarmUserClassPicker.test.tsx +0 -0
  274. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/SwarmRatios/SwarmRatios.test.tsx +0 -0
  275. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/SwarmRatios/SwarmRatios.tsx +0 -0
  276. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/Table/Table.test.tsx +0 -0
  277. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/Table/Table.tsx +0 -0
  278. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/Tabs/Tabs.constants.tsx +0 -0
  279. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/Tabs/Tabs.test.tsx +0 -0
  280. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/Tabs/Tabs.tsx +0 -0
  281. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/ViewColumnSelector/ViewColumnSelector.test.tsx +0 -0
  282. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/ViewColumnSelector/ViewColumnSelector.tsx +0 -0
  283. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/components/WorkersTable/WorkersTable.tsx +0 -0
  284. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/constants/auth.ts +0 -0
  285. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/constants/swarm.ts +0 -0
  286. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/constants/theme.ts +0 -0
  287. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/global.d.ts +0 -0
  288. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/hooks/tests/useNotifications.test.tsx +0 -0
  289. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/hooks/tests/useSelecteViewColumns.test.tsx +0 -0
  290. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/hooks/tests/useSortByField.test.tsx +0 -0
  291. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/hooks/tests/useSwarmUi.test.tsx +0 -0
  292. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/hooks/useInterval.ts +0 -0
  293. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/hooks/useNotifications.ts +0 -0
  294. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/hooks/useSelectViewColumns.ts +0 -0
  295. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/hooks/useSortByField.ts +0 -0
  296. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/hooks/useSwarmUi.ts +0 -0
  297. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/index.tsx +0 -0
  298. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/pages/Auth.tsx +0 -0
  299. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/pages/Dashboard.tsx +0 -0
  300. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/pages/HtmlReport.tsx +0 -0
  301. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/pages/tests/Auth.test.tsx +0 -0
  302. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/pages/tests/Dashboard.test.tsx +0 -0
  303. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/pages/tests/HtmlReport.test.tsx +0 -0
  304. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/redux/api/swarm.ts +0 -0
  305. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/redux/hooks.ts +0 -0
  306. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/redux/slice/logViewer.slice.ts +0 -0
  307. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/redux/slice/notification.slice.ts +0 -0
  308. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/redux/slice/root.slice.ts +0 -0
  309. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/redux/slice/swarm.slice.ts +0 -0
  310. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/redux/slice/tests/ui.slice.test.ts +0 -0
  311. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/redux/slice/theme.slice.ts +0 -0
  312. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/redux/slice/ui.slice.ts +0 -0
  313. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/redux/slice/url.slice.ts +0 -0
  314. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/redux/store.ts +0 -0
  315. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/redux/utils.ts +0 -0
  316. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/styles/theme.ts +0 -0
  317. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/test/constants.ts +0 -0
  318. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/test/mocks/statsRequest.mock.ts +0 -0
  319. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/test/mocks/swarmState.mock.ts +0 -0
  320. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/test/setup.ts +0 -0
  321. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/test/testUtils.tsx +0 -0
  322. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/types/auth.types.ts +0 -0
  323. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/types/swarm.types.ts +0 -0
  324. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/types/tab.types.ts +0 -0
  325. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/types/table.types.ts +0 -0
  326. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/types/ui.types.ts +0 -0
  327. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/utils/number.ts +0 -0
  328. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/utils/object.ts +0 -0
  329. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/utils/string.ts +0 -0
  330. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/utils/tests/number.test.ts +0 -0
  331. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/utils/tests/object.test.ts +0 -0
  332. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/utils/tests/string.test.ts +0 -0
  333. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/utils/tests/url.test.ts +0 -0
  334. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/src/utils/url.ts +0 -0
  335. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/tsconfig.json +0 -0
  336. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/vite.config.ts +0 -0
  337. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/vitest.config.ts +0 -0
  338. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust/webui/yarn.lock +0 -0
  339. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust.egg-info/dependency_links.txt +0 -0
  340. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust.egg-info/entry_points.txt +0 -0
  341. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust.egg-info/not-zip-safe +0 -0
  342. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust.egg-info/requires.txt +0 -0
  343. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/locust.egg-info/top_level.txt +0 -0
  344. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/package.json +0 -0
  345. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/pyproject.toml +0 -0
  346. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/scripts/locustfile.py +0 -0
  347. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/scripts/run-disributed-headless.sh +0 -0
  348. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/scripts/run-disributed-web.sh +0 -0
  349. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/scripts/run-local-headless.sh +0 -0
  350. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/scripts/run-local-web.sh +0 -0
  351. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/setup.cfg +0 -0
  352. {locust-2.26.1.dev16 → locust-2.26.1.dev48}/tox.ini +0 -0
@@ -37,6 +37,12 @@
37
37
  "restructuredtext.confPath": "${workspaceFolder}/docs",
38
38
  "[python]": {
39
39
  "editor.formatOnSave": true,
40
+ "editor.codeActionsOnSave": {
41
+ "source.fixAll": "explicit",
42
+ "source.organizeImports": "explicit"
43
+ },
40
44
  "editor.defaultFormatter": "charliermarsh.ruff"
41
45
  },
46
+ "python.testing.pytestEnabled": false,
47
+ "python.testing.unittestEnabled": true
42
48
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: locust
3
- Version: 2.26.1.dev16
3
+ Version: 2.26.1.dev48
4
4
  Summary: Developer friendly load testing framework
5
5
  License: MIT
6
6
  Project-URL: Homepage, https://github.com/locustio/locust
@@ -105,7 +105,7 @@ Locust's code base is intentionally kept small and doesn't solve everything out
105
105
  * [Send real time reporting data to TimescaleDB and visualize it in Grafana](https://github.com/SvenskaSpel/locust-plugins/blob/master/locust_plugins/dashboards/README.md)
106
106
  * [Wrap calls to handle the peculiarities of your REST API](https://github.com/SvenskaSpel/locust-plugins/blob/8af21862d8129a5c3b17559677fe92192e312d8f/examples/rest_ex.py#L87)
107
107
  * [Use a totally custom load shape/profile](https://docs.locust.io/en/latest/custom-load-shape.html#custom-load-shape)
108
- * ...
108
+ * [...](https://github.com/locustio/locust/wiki/Extensions)
109
109
 
110
110
  ## Links
111
111
 
@@ -62,7 +62,7 @@ Locust's code base is intentionally kept small and doesn't solve everything out
62
62
  * [Send real time reporting data to TimescaleDB and visualize it in Grafana](https://github.com/SvenskaSpel/locust-plugins/blob/master/locust_plugins/dashboards/README.md)
63
63
  * [Wrap calls to handle the peculiarities of your REST API](https://github.com/SvenskaSpel/locust-plugins/blob/8af21862d8129a5c3b17559677fe92192e312d8f/examples/rest_ex.py#L87)
64
64
  * [Use a totally custom load shape/profile](https://docs.locust.io/en/latest/custom-load-shape.html#custom-load-shape)
65
- * ...
65
+ * [...](https://github.com/locustio/locust/wiki/Extensions)
66
66
 
67
67
  ## Links
68
68
 
@@ -786,7 +786,7 @@ Identical to previous version, but now built & deployed to Pypi using Travis.
786
786
  * Added sequential task support - https://github.com/locustio/locust/pull/827
787
787
  * Added support for user-defined wait_function - https://github.com/locustio/locust/pull/785
788
788
  * By default, Locust no longer resets the statistics when the hatching is complete.
789
- Therefore :code:`--no-reset-stats` has been deprecated (since it's now the default behaviour),
789
+ Therefore :code:`--no-reset-stats` has been deprecated (since it's now the default behavior),
790
790
  and instead a new :code:`--reset-stats` option has been added.
791
791
  * Dropped support for Python 3.3
792
792
  * Updated documentation
@@ -1007,7 +1007,7 @@ Other changes
1007
1007
  Anyone who is currently using existing locust scripts and want to upgrade to 0.6
1008
1008
  should read through these changes.
1009
1009
 
1010
- :py:class:`SubLocust <locust.core.SubLocust>` replaced by :py:class:`TaskSet <locust.core.TaskSet>` and :py:class:`Locust <locust.core.Locust>` class behaviour changed
1010
+ :py:class:`SubLocust <locust.core.SubLocust>` replaced by :py:class:`TaskSet <locust.core.TaskSet>` and :py:class:`Locust <locust.core.Locust>` class behavior changed
1011
1011
  -----------------------------------------------------------------------------------------------------------------------------------------------------------------------
1012
1012
 
1013
1013
  :py:class:`Locust <locust.core.Locust>` classes does no longer control task scheduling and execution.
@@ -114,8 +114,7 @@ See :ref:`running-without-web-ui`
114
114
  Using multiple Locustfiles at once
115
115
  ==================================
116
116
 
117
- The ``-f/--locustfile`` option accepts a single directory of locustfiles as an option. Locust will recursively
118
- search the directory for ``*.py`` files, ignoring files that start with "_".
117
+ ``-f/--locustfile`` accepts multiple, comma-separated locustfiles.
119
118
 
120
119
  Example:
121
120
 
@@ -132,20 +131,23 @@ With the following file structure:
132
131
 
133
132
  .. code-block:: console
134
133
 
135
- $ locust -f locustfiles
134
+ $ locust -f locustfiles/locustfile1.py,locustfiles/locustfile2.py,locustfiles/more_files/locustfile3.py
136
135
 
137
136
  Locust will use ``locustfile1.py``, ``locustfile2.py`` & ``more_files/locustfile3.py``
138
137
 
139
- Additionally, ``-f/--locustfile`` accepts multiple, comma-separated locustfiles.
138
+ Additionally, ``-f/--locustfile`` accepts directories as an option. Locust will recursively
139
+ search specified directories for ``*.py`` files, ignoring files that start with "_".
140
140
 
141
141
  Example:
142
142
 
143
143
  .. code-block:: console
144
144
 
145
- $ locust -f locustfiles/locustfile1.py,locustfiles/locustfile2.py,locustfiles/more_files/locustfile3.py
145
+ $ locust -f locustfiles
146
146
 
147
147
  Locust will use ``locustfile1.py``, ``locustfile2.py`` & ``more_files/locustfile3.py``
148
148
 
149
+
150
+
149
151
  You can also use ``-f/--locustfile`` for web urls. This will download the file and use it as any normal locustfile.
150
152
 
151
153
  Example:
@@ -161,7 +163,7 @@ Running Locust with User class UI picker
161
163
  ========================================
162
164
 
163
165
  You can select which Shape class and which User classes to run in the WebUI when running locust with the ``--class-picker`` flag.
164
- No selection uses all of the available User classes.
166
+ No selection uses all the available User classes.
165
167
 
166
168
  Example:
167
169
 
@@ -101,8 +101,8 @@ This shape would create create in the first 10 seconds 10 User of ``UserA``. In
101
101
  Reusing command line parameters in custom shapes
102
102
  ------------------------------------------------
103
103
 
104
- By default, using a custom shape will disable default run parameters (in both the CLI and the Web UI):
105
- - `--run-time` (providing this one with a custom shape will make locust to bail out)
104
+ By default, using a custom shape will disregard default run parameters (in both the CLI and the Web UI):
105
+ - `--run-time`
106
106
  - `--spawn-rate`
107
107
  - `--users`
108
108
 
@@ -109,13 +109,7 @@ to the Flask app instance and use that to set up a new route::
109
109
  def my_added_page():
110
110
  return "Another page"
111
111
 
112
- You should now be able to start locust and browse to http://127.0.0.1:8089/added_page
113
-
114
- .. note::
115
-
116
- Please note that at the moment Locust does not show the extended Web UI under the default root path `"/"`.
117
- To view your extensions, navigate to the newly added web route. In this example, `"/added_page"`.
118
-
112
+ You should now be able to start locust and browse to http://127.0.0.1:8089/added_page. Note that it doesn't get automatically added as a new tab - you'll need to enter the URL directly.
119
113
 
120
114
  Extending Web UI
121
115
  ================
@@ -17,7 +17,7 @@ In a *best case* scenario (doing small requests inside a ``while True``-loop) a
17
17
 
18
18
  The relative improvement may be even bigger with bigger request payloads, but it may also be smaller if your test is doing CPU intensive things not related to requests.
19
19
 
20
- Of course, in reality you should run :ref:`one locust process per CPU core <running-distributed>`.
20
+ Of course, in reality, you should run :ref:`one locust process per CPU core <running-distributed>`.
21
21
 
22
22
  .. note::
23
23
 
@@ -83,7 +83,7 @@ FastHttpUser provides a ``rest`` method for testing REST/JSON HTTP interfaces. I
83
83
  elif resp.js["bar"] != 42:
84
84
  resp.failure(f"'bar' had an unexpected value: {resp.js['bar']}")
85
85
 
86
- For a complete example, see `rest.py <https://github.com/locustio/locust/blob/master/examples/rest.py>`_. That also shows how you can use inheritance to provide behaviours specific to your REST API that are common to multiple requests/testplans.
86
+ For a complete example, see `rest.py <https://github.com/locustio/locust/blob/master/examples/rest.py>`_. That also shows how you can use inheritance to provide behaviors specific to your REST API that are common to multiple requests/testplans.
87
87
 
88
88
  .. note::
89
89
 
@@ -93,7 +93,7 @@ For a complete example, see `rest.py <https://github.com/locustio/locust/blob/ma
93
93
  Connection Handling
94
94
  ===================
95
95
 
96
- By default a User will reuse the same TCP/HTTP connection (unless it breaks somehow). To more realistically simulate new browsers connecting to your application this connection can be manually closed.
96
+ By default, a User will reuse the same TCP/HTTP connection (unless it breaks somehow). To more realistically simulate new browsers connecting to your application this connection can be manually closed.
97
97
 
98
98
  .. code-block:: python
99
99
 
@@ -33,7 +33,6 @@ Running your Locust tests
33
33
  running-distributed
34
34
  running-in-debugger
35
35
  running-in-docker
36
- running-cloud-integration
37
36
  running-without-web-ui
38
37
 
39
38
 
@@ -18,7 +18,7 @@ A Locust test is essentially just a Python program making requests to the system
18
18
 
19
19
  This user will make an HTTP request to ``/hello``, then to ``/world``, and then repeat. For a full explanation and a more realistic example see :ref:`writing-a-locustfile`.
20
20
 
21
- Change ``/hello`` and ``/world`` to some actual paths on the web site/service you want to test, put the code in a file named ``locustfile.py`` in your current directory and then run ``locust``:
21
+ Change ``/hello`` and ``/world`` to some actual paths on the website/service you want to test, put the code in a file named ``locustfile.py`` in your current directory and then run ``locust``:
22
22
 
23
23
  .. code-block:: console
24
24
  :substitutions:
@@ -36,7 +36,7 @@ Open http://localhost:8089
36
36
 
37
37
  | Provide the host name of your server and try it out!
38
38
 
39
- The following screenshots show what it might look like when running this test using 50 concurrent users, with a ramp up rate of 1 users/s
39
+ The following screenshots show what it might look like when running this test using 50 concurrent users, with a ramp up rate of 1 user/s
40
40
 
41
41
  .. image:: images/webui-running-statistics.png
42
42
 
@@ -56,11 +56,7 @@ The following screenshots show what it might look like when running this test us
56
56
 
57
57
  If your response times are *not* increasing then add even more users until you find the service's breaking point, or celebrate that your service is already performant enough for your expected load.
58
58
 
59
- If you need some help digging into server side problems, or you're having trouble generating enough load to saturate your system, have a look at the `Locust FAQ <https://github.com/locustio/locust/wiki/FAQ#increase-my-request-raterps>`_.
60
-
61
- .. note::
62
-
63
- Things looking a little different? We've updated the UI! If for whatever reason you need to use the old version, you can always revert back to it using the ``--legacy-ui`` flag.
59
+ If you need some help digging into server side problems, or you're having trouble generating enough load to saturate your system, take a look at the `Locust FAQ <https://github.com/locustio/locust/wiki/FAQ#increase-my-request-raterps>`_.
64
60
 
65
61
  Direct command line usage / headless
66
62
  ====================================
@@ -35,22 +35,7 @@ official Locust docker image as a base image::
35
35
  FROM locustio/locust
36
36
  RUN pip3 install some-python-package
37
37
 
38
- Running a distributed load test on Kubernetes
39
- ==============================================
38
+ Running Locust using Kubernetes
39
+ ===============================
40
40
 
41
- HELM
42
- *****
43
-
44
- One of the ways to run Locust on Kubernetes is to use a `Helm chart <https://helm.sh/>`_.
45
-
46
- There is a good helm chart here: `github.com/deliveryhero/helm-charts <https://github.com/deliveryhero/helm-charts/tree/master/stable/locust>`_.
47
-
48
- Note: this Helm chart is a separate project, and not supported by Locust maintainers.
49
-
50
- Kubernetes Operator
51
- *******************
52
- Another way to run Locust on Kubernetes is to use the `Locust Kubernetes Operator <https://abdelrhmanhamouda.github.io/locust-k8s-operator/>`_.
53
-
54
- The Locust Operator is designed to unlock easy, seamless & effortless distributed performance testing in the cloud.
55
-
56
- Note: the Locust Kubernetes Operator is a separate project and is not supported by Locust maintainers.
41
+ See [Extensions](https://github.com/locustio/locust/wiki/Extensions#helm) in the wiki.
@@ -10,9 +10,9 @@ Locust only comes with built-in support for HTTP/HTTPS but it can be extended to
10
10
 
11
11
  It is important that the protocol libraries you use can be `monkey-patched <https://www.gevent.org/intro.html#monkey-patching>`_ by gevent.
12
12
 
13
- Almost any libraries that are pure Python (using the Python ``socket`` module or some other standard library function like ``subprocess``) should work fine out of the box - but if they do their I/O calls in C, gevent will be unable to patch it. This will block the whole Locust/Python process (in practice limiting you to running a single User per worker process).
13
+ Almost any libraries that are pure Python (using the Python ``socket`` module or some other standard library function like ``subprocess``) should work fine out of the box - but if they do their I/O calls from compiled code C, gevent will be unable to patch it. This will block the whole Locust/Python process (in practice limiting you to running a single User per worker process).
14
14
 
15
- Some C libraries allow for other workarounds. For example, if you want to use psycopg2 to performance test PostgreSQL, you can use `psycogreen <https://github.com/psycopg/psycogreen/>`_. If you are willing to get your hands dirty, you may also be able to patch a library yourself, but that is beyond the scope of this documentation.
15
+ Some C libraries allow for other workarounds. For example, if you want to use psycopg2 to performance test PostgreSQL, you can use `psycogreen <https://github.com/psycopg/psycogreen/>`_. If you are willing to get your hands dirty, you may be able to patch a library yourself, but that is beyond the scope of this documentation.
16
16
 
17
17
  XML-RPC
18
18
  =======
@@ -2,7 +2,7 @@
2
2
  What is Locust?
3
3
  ===============================
4
4
 
5
- Locust is an open source performance/load testing tool for HTTP and other protocols. Its developer friendly approach lets you to define your tests in regular Python code.
5
+ Locust is an open source performance/load testing tool for HTTP and other protocols. Its developer friendly approach lets you define your tests in regular Python code.
6
6
 
7
7
  Locust tests can be run from command line or using its web-based UI. Throughput, response times and errors can be viewed in real time and/or exported for later analysis.
8
8
 
@@ -21,7 +21,7 @@ Features
21
21
 
22
22
  * **Write test scenarios in plain old Python**
23
23
 
24
- If you want your users to loop, perform some conditional behaviour or do some calculations, you just use the regular programming constructs provided by Python.
24
+ If you want your users to loop, perform some conditional behavior or do some calculations, you just use the regular programming constructs provided by Python.
25
25
  Locust runs every user inside its own greenlet (a lightweight process/coroutine). This enables you to write your tests like normal (blocking) Python code instead of having to use callbacks or some other mechanism.
26
26
  Because your scenarios are "just python" you can use your regular IDE, and version control your tests as regular code (as opposed to some other tools that use XML or binary formats)
27
27
 
@@ -37,7 +37,7 @@ Features
37
37
 
38
38
  * **Can test any system**
39
39
 
40
- Even though Locust primarily works with web sites/services, it can be used to test almost any system or protocol. Just :ref:`write a client <testing-other-systems>`
40
+ Even though Locust primarily works with websites/services, it can be used to test almost any system or protocol. Just :ref:`write a client <testing-other-systems>`
41
41
  for what you want to test, or `explore some created by the community <https://github.com/SvenskaSpel/locust-plugins#users>`_.
42
42
 
43
43
  * **Hackable**
@@ -47,12 +47,12 @@ Features
47
47
  Name & background
48
48
  =================
49
49
 
50
- Locust was born out of a frustration with existing solutions. No existing load testing tool was well equipped to generate realistic
50
+ Locust was born out of a frustration with existing solutions. No existing load testing tool was well-equipped to generate realistic
51
51
  load against a dynamic website where most pages had different content for different users. Existing tools used clunky interfaces or
52
52
  verbose configuration files to declare the tests. In Locust we took a different approach. Instead of configuration formats or UIs
53
- you'd get a python framework that would let you define the behaviour of your users using Python code.
53
+ you'd get a python framework that would let you define the behavior of your users using Python code.
54
54
 
55
- Locust takes its name from the `grasshopper species <https://en.wikipedia.org/wiki/Locust>`_, known for their swarming behaviour.
55
+ Locust takes its name from the `grasshopper species <https://en.wikipedia.org/wiki/Locust>`_, known for their swarming behavior.
56
56
 
57
57
  :ref:`history`
58
58
 
@@ -62,7 +62,6 @@ Authors
62
62
  - Jonatan Heyman (`@heyman <https://github.com/heyman>`_)
63
63
  - Lars Holmberg (`@cyberw <https://github.com/cyberw>`_)
64
64
  - Andrew Baldwin (`@andrewbaldwin44 <https://github.com/andrewbaldwin44>`_)
65
- - Carl Byström, Joakim Hamrén & Hugo Heyman
66
65
 
67
66
  Many thanks to our other great `contributors <https://github.com/locustio/locust/graphs/contributors>`_!
68
67
 
@@ -204,8 +204,8 @@ user classes to use from the same locustfile by passing them as command line arg
204
204
 
205
205
  $ locust -f locust_file.py WebUser MobileUser
206
206
 
207
- If you wish to simulate more users of a certain type you can set a weight attribute on those
208
- classes. Say for example, web users are three times more likely than mobile users:
207
+ If you wish to simulate more users of a certain type than another you can set a weight attribute on those
208
+ classes. The code below will make Locust spawn 3 times as many WebUsers as MobileUsers:
209
209
 
210
210
  .. code-block:: python
211
211
 
@@ -217,9 +217,9 @@ classes. Say for example, web users are three times more likely than mobile user
217
217
  weight = 1
218
218
  ...
219
219
 
220
- Also you can set the :py:attr:`fixed_count <locust.User.fixed_count>` attribute.
221
- In this case the weight attribute will be ignored and the exact count users will be spawned.
222
- These users are spawned first. In the example below, only one instance of AdminUser
220
+ Also, you can set the :py:attr:`fixed_count <locust.User.fixed_count>` attribute.
221
+ In this case, the weight attribute will be ignored and only that exact number users will be spawned.
222
+ These users are spawned before any regular, weighted ones. In the example below, only one instance of AdminUser
223
223
  will be spawned, to make some specific work with more accurate control
224
224
  of request count independently of total user count.
225
225
 
@@ -249,7 +249,7 @@ tasks attribute
249
249
  ---------------
250
250
 
251
251
  A User class can have tasks declared as methods under it using the :py:func:`@task <locust.task>` decorator, but one can also
252
- specify tasks using the *tasks* attribute which is described in more details :ref:`below <tasks-attribute>`.
252
+ specify tasks using the *tasks* attribute, which is described in more details :ref:`below <tasks-attribute>`.
253
253
 
254
254
  environment attribute
255
255
  ---------------------
@@ -281,12 +281,9 @@ Tasks
281
281
  =====
282
282
 
283
283
  When a load test is started, an instance of a User class will be created for each simulated user
284
- and they will start running within their own green thread. When these users run they pick tasks that
284
+ and they will start running within their own greenlet. When these users run they pick tasks that
285
285
  they execute, sleep for awhile, and then pick a new task and so on.
286
286
 
287
- The tasks are normal python callables and - if we were load-testing an auction website - they could do
288
- stuff like "loading the start page", "searching for some product", "making a bid", etc.
289
-
290
287
  @task decorator
291
288
  ---------------
292
289
 
@@ -617,7 +614,7 @@ Using :ref:`catch_response <catch-response>` and accessing `request_meta <https:
617
614
  HTTP Proxy settings
618
615
  -------------------
619
616
  To improve performance, we configure requests to not look for HTTP proxy settings in the environment by setting
620
- requests.Session's trust_env attribute to ``False``. If you don't want this you can manually set
617
+ requests.Session's trust_env attribute to ``False``. If you don't want this, you can manually set
621
618
  ``locust_instance.client.trust_env`` to ``True``. For further details, refer to the
622
619
  `documentation of requests <https://requests.readthedocs.io/en/master/api/#requests.Session.trust_env>`_.
623
620
 
@@ -644,7 +641,7 @@ For more configuration options, refer to the
644
641
 
645
642
  TaskSets
646
643
  ================================
647
- TaskSets is a way to structure tests of hierarchical web sites/systems. You can :ref:`read more about it here <tasksets>`.
644
+ TaskSets is a way to structure tests of hierarchical websites/systems. You can :ref:`read more about it here <tasksets>`.
648
645
 
649
646
  Examples
650
647
  ========
@@ -660,7 +657,7 @@ in any Python program. The current working directory is automatically added to p
660
657
  so any python file/module/packages that resides in the working directory can be imported using the
661
658
  python ``import`` statement.
662
659
 
663
- For small tests, keeping all of the test code in a single ``locustfile.py`` should work fine, but for
660
+ For small tests, keeping all the test code in a single ``locustfile.py`` should work fine, but for
664
661
  larger test suites, you'll probably want to split the code into multiple files and directories.
665
662
 
666
663
  How you structure the test source code is of course entirely up to you, but we recommend that you
@@ -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.1.dev16'
16
- __version_tuple__ = version_tuple = (2, 26, 1, 'dev16')
15
+ __version__ = version = '2.26.1.dev48'
16
+ __version_tuple__ = version_tuple = (2, 26, 1, 'dev48')
@@ -93,90 +93,54 @@ class LocustTomlConfigParser(configargparse.TomlConfigParser):
93
93
  return result
94
94
 
95
95
 
96
- def _is_package(path):
96
+ def parse_locustfile_paths(paths: list[str]) -> list[str]:
97
97
  """
98
- Is the given path a Python package?
99
- """
100
- return os.path.isdir(path) and os.path.exists(os.path.join(path, "__init__.py"))
101
-
102
-
103
- def find_locustfile(locustfile: str) -> str | None:
104
- """
105
- Attempt to locate a locustfile, either explicitly or by searching parent dirs.
106
- """
107
- # Obtain env value
108
- names = [locustfile]
109
- # Create .py version if necessary
110
- if not names[0].endswith(".py"):
111
- names.append(names[0] + ".py")
112
- # Does the name contain path elements?
113
- if os.path.dirname(names[0]):
114
- # If so, expand home-directory markers and test for existence
115
- for name in names:
116
- expanded = os.path.expanduser(name)
117
- if os.path.exists(expanded):
118
- if name.endswith(".py") or _is_package(expanded):
119
- return os.path.abspath(expanded)
120
- else:
121
- # Otherwise, start in cwd and work downwards towards filesystem root
122
- path = os.path.abspath(".")
123
- while True:
124
- for name in names:
125
- joined = os.path.join(path, name)
126
- if os.path.exists(joined):
127
- if name.endswith(".py") or _is_package(joined):
128
- return os.path.abspath(joined)
129
- parent_path = os.path.dirname(path)
130
- if parent_path == path:
131
- # we've reached the root path which has been checked this iteration
132
- break
133
- path = parent_path
134
-
135
- return None
136
-
98
+ Returns a list of relative file paths.
137
99
 
138
- def find_locustfiles(locustfiles: list[str], is_directory: bool) -> list[str]:
139
- """
140
- Returns a list of relative file paths for the Locustfile Picker. If is_directory is True,
141
- locustfiles is expected to have a single index which is a directory that will be searched for
142
- locustfiles.
100
+ Args:
101
+ paths (list[str]): paths taken from the -f command
143
102
 
144
- Ignores files that start with _
103
+ Returns:
104
+ list[str]: Parsed locust file paths
145
105
  """
146
- file_paths = []
147
-
148
- if is_directory:
149
- locustdir = locustfiles[0]
150
-
151
- if len(locustfiles) != 1:
152
- sys.stderr.write(f"Multiple values passed in for directory: {locustfiles}\n")
153
- sys.exit(1)
154
-
155
- if not os.path.exists(locustdir):
156
- sys.stderr.write(f"Could not find directory '{locustdir}'\n")
157
- sys.exit(1)
158
-
159
- if not os.path.isdir(locustdir):
160
- sys.stderr.write(f"'{locustdir} is not a directory\n")
106
+ # Parse each path and unpack the returned lists as a single list
107
+ return [parsed for path in paths for parsed in _parse_locustfile_path(path)]
108
+
109
+
110
+ def _parse_locustfile_path(path: str) -> list[str]:
111
+ parsed_paths = []
112
+ if is_url(path):
113
+ # Download the file and use the new path as locustfile
114
+ parsed_paths.append(download_locustfile_from_url(path))
115
+ elif os.path.isdir(path):
116
+ # Find all .py files in directory tree
117
+ for root, _dirs, fs in os.walk(path):
118
+ parsed_paths.extend(
119
+ [
120
+ os.path.abspath(os.path.join(root, f))
121
+ for f in fs
122
+ if os.path.isfile(os.path.join(root, f)) and f.endswith(".py") and not f.startswith("_")
123
+ ]
124
+ )
125
+ if not parsed_paths:
126
+ sys.stderr.write(f"Could not find any locustfiles in directory '{path}'")
161
127
  sys.exit(1)
162
-
163
- for root, dirs, files in os.walk(locustdir):
164
- for file in files:
165
- if not file.startswith("_") and file.endswith(".py"):
166
- file_path = os.path.join(root, file)
167
- file_paths.append(file_path)
168
128
  else:
169
- for file_path in locustfiles:
170
- if not file_path.endswith(".py"):
171
- sys.stderr.write(f"Invalid file '{file_path}'. File should have '.py' extension\n")
172
- sys.exit(1)
173
-
174
- file_paths.append(file_path)
129
+ # If file exists add the abspath
130
+ if os.path.exists(path) and path.endswith(".py"):
131
+ parsed_paths.append(os.path.abspath(path))
132
+ else:
133
+ note_about_file_endings = "Ensure your locustfile ends with '.py' or is a directory with locustfiles. "
134
+ sys.stderr.write(f"Could not find '{path}'. {note_about_file_endings}See --help for available options.\n")
135
+ sys.exit(1)
175
136
 
176
- return file_paths
137
+ return parsed_paths
177
138
 
178
139
 
179
140
  def is_url(url: str) -> bool:
141
+ """
142
+ Check if path is an url
143
+ """
180
144
  try:
181
145
  result = urlparse(url)
182
146
  if result.scheme == "https" or result.scheme == "http":
@@ -188,6 +152,10 @@ def is_url(url: str) -> bool:
188
152
 
189
153
 
190
154
  def download_locustfile_from_url(url: str) -> str:
155
+ """
156
+ Attempt to download and save locustfile from url.
157
+ Returns path to downloaded file.
158
+ """
191
159
  try:
192
160
  response = requests.get(url)
193
161
  # Check if response is valid python code
@@ -244,7 +212,7 @@ See documentation for more details, including how to set options using a file or
244
212
  "-f",
245
213
  "--locustfile",
246
214
  metavar="<filename>",
247
- default="locustfile",
215
+ default="locustfile.py",
248
216
  help="The Python file or module that contains your test, e.g. 'my_test.py'. Accepts multiple comma-separated .py files, a package name/directory or a url to a remote locustfile. Defaults to 'locustfile'.",
249
217
  env_var="LOCUST_LOCUSTFILE",
250
218
  )
@@ -314,7 +282,7 @@ def parse_locustfile_option(args=None) -> list[str]:
314
282
  parser
315
283
 
316
284
  Returns:
317
- Locustfiles (List): List of locustfile paths
285
+ parsed_paths (List): List of locustfile paths
318
286
  """
319
287
  parser = get_empty_argument_parser(add_help=False)
320
288
  parser.add_argument(
@@ -354,6 +322,10 @@ def parse_locustfile_option(args=None) -> list[str]:
354
322
 
355
323
  options, _ = parser.parse_known_args(args=args)
356
324
 
325
+ if options.help or options.version:
326
+ # if --help or --version is specified we'll call parse_options which will print the help/version message
327
+ parse_options(args=args)
328
+
357
329
  if options.locustfile == "-":
358
330
  if not options.worker:
359
331
  sys.stderr.write(
@@ -364,51 +336,21 @@ def parse_locustfile_option(args=None) -> list[str]:
364
336
  filename = download_locustfile_from_master(options.master_host, options.master_port)
365
337
  return [filename]
366
338
 
367
- # Comma separated string to list
368
- locustfile_as_list = [
369
- download_locustfile_from_url(f) if is_url(f.strip()) else f.strip() for f in options.locustfile.split(",")
370
- ]
339
+ locustfile_list = [f.strip() for f in options.locustfile.split(",")]
340
+ parsed_paths = parse_locustfile_paths(locustfile_list)
371
341
 
372
- # Checking if the locustfile is a single file, multiple files or a directory
373
- if locustfile_is_directory(locustfile_as_list):
374
- locustfiles = find_locustfiles(locustfile_as_list, is_directory=True)
375
- locustfile = None
342
+ if not parsed_paths:
343
+ note_about_file_endings = ""
344
+ user_friendly_locustfile_name = options.locustfile
376
345
 
377
- if not locustfiles:
378
- sys.stderr.write(
379
- f"Could not find any locustfiles in directory '{locustfile_as_list[0]}'. See --help for available options.\n"
380
- )
381
- sys.exit(1)
382
- else:
383
- if len(locustfile_as_list) > 1:
384
- # Is multiple files
385
- locustfiles = find_locustfiles(locustfile_as_list, is_directory=False)
386
- locustfile = None
387
- else:
388
- # Is a single file
389
- locustfile = find_locustfile(locustfile_as_list[0])
390
- locustfiles = []
391
-
392
- if not locustfile:
393
- if options.help or options.version:
394
- # if --help or --version is specified we'll call parse_options which will print the help/version message
395
- parse_options(args=args)
396
- note_about_file_endings = ""
397
- user_friendly_locustfile_name = options.locustfile
398
- if options.locustfile == "locustfile":
399
- user_friendly_locustfile_name = "locustfile.py"
400
- elif not options.locustfile.endswith(".py"):
401
- note_about_file_endings = (
402
- "Ensure your locustfile ends with '.py' or is a directory with locustfiles. "
403
- )
404
- sys.stderr.write(
405
- f"Could not find '{user_friendly_locustfile_name}'. {note_about_file_endings}See --help for available options.\n"
406
- )
407
- sys.exit(1)
408
- else:
409
- locustfiles.append(locustfile)
410
-
411
- return locustfiles
346
+ if not options.locustfile.endswith(".py"):
347
+ note_about_file_endings = "Ensure your locustfile ends with '.py' or is a directory with parsed_paths. "
348
+ sys.stderr.write(
349
+ f"Could not find '{user_friendly_locustfile_name}'. {note_about_file_endings}See --help for available options.\n"
350
+ )
351
+ sys.exit(1)
352
+
353
+ return parsed_paths
412
354
 
413
355
 
414
356
  def setup_parser_arguments(parser):
@@ -857,34 +799,3 @@ def ui_extra_args_dict(args=None) -> dict[str, dict[str, Any]]:
857
799
  }
858
800
 
859
801
  return extra_args
860
-
861
-
862
- def locustfile_is_directory(locustfiles: list[str]) -> bool:
863
- """
864
- If a user passes in a locustfile without a file extension and there is a directory with the same name,
865
- this function defaults to using the file and will raise a warning.
866
- In this example, foobar.py will be used:
867
- ├── src/
868
- │ ├── foobar.py
869
- ├── foobar/
870
- │ ├── locustfile.py
871
-
872
- locust -f foobar
873
- """
874
- if len(locustfiles) > 1:
875
- return False
876
-
877
- locustfile = locustfiles[0]
878
-
879
- # Checking if the locustfile could be both a file and a directory
880
- if not locustfile.endswith(".py"):
881
- if os.path.isfile(locustfile) and os.path.isdir(locustfile):
882
- msg = f"WARNING: Using {locustfile}.py instead of directory {os.path.abspath(locustfile)}\n"
883
- sys.stderr.write(msg)
884
-
885
- return False
886
-
887
- if os.path.isdir(locustfile):
888
- return True
889
-
890
- return False