Commit Graph

14 Commits

Author SHA1 Message Date
tdadela f99e9df700 sort imports 2024-01-17 00:07:29 +01:00
Jonatan Heyman 03b6df4fab Re-add info on wait_time to Quickstart documentation and examples 2020-11-18 14:20:49 +01:00
Lars Holmberg 7676b5389c Make wait_time = constant(0) the default instead of forcing our users to specify it. Makes a big difference in readability of small User classes and reduces the cognitive overhead for locust beginners. Fixes #1308 2020-11-11 22:14:20 +01:00
Lars Holmberg 7c0fcc213d Auto format using Black (20.8b1, which includes the magic trailing commas fix). Added black --check to build. 2020-08-27 09:17:42 +02:00
anuj_ 530db29ad7 More renaming. Includes renaming in test and example files as well. 2020-04-20 13:52:22 +12:00
Jonatan Heyman 02ce1665b4 Change how tasks and TaskSets are declared on Locust classes.
* Let users specify tasks directly under a Locust class, just as one would do it on a TaskSet class. These tasks will get the Locust instance as argument when executed.
* Removed Locust.task_set from the public API, and instead let users use either the tasks attribute or the @task decorator.
* Introduce a Locust.abstract boolean attribute. If it's set to True the Locust class is meant to be used as a base class, and users of that type can not be spawned directly from it.
2020-04-01 01:08:07 +02:00
Jonatan Heyman 10d7856880 Updated example files with with new wait_time API 2019-10-24 17:50:19 +02:00
Mark Beacom 532fec806b
Sort all python imports 2017-09-08 03:47:06 -04:00
Jonatan Heyman 7ed9f5f215 Moved HttpSession instantiation into new HttpLocust class
As discussed in #83, removed HttpSession instantiation on the Locust.client attribute from base Locust class, and introduced new HttpLocust class with this functionality. 

Added warning when trying to access the client attribute on a "bare" Locust instance. Updated documentation.
2013-12-02 08:48:52 +01:00
Jonatan Heyman c2245a4587 Updated documentation to reflect Locust class/TaskSet API changes (#43). Improved docs in general. 2012-11-15 01:13:58 +01:00
Jonatan Heyman ba1c811ff2 Changed the Locust class/SubLocust class API into a Locust and a TaskSet class, described in #43 2012-11-06 22:57:13 +01:00
Jonatan Heyman 2d1aeeec3f Removed the require_once decorator. Fixes #42. 2012-11-02 18:15:00 +01:00
Jonatan Heyman d0782d1eb5 Use python-requests lib (partly discussed in #39) 2012-10-25 03:04:55 +02:00
Carl Byström 68d655f2d5 Moved the one and only example script to examples/ directory outside library 2012-01-10 22:49:32 +01:00