-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #120 from stuartcampbell/update-deps
Update Dependencies and Code Reformatting and Linting
- Loading branch information
Showing
30 changed files
with
383 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
import locust | ||
|
||
|
||
class ApiTest(locust.FastHttpUser): | ||
host = "http://127.0.0.1:8080" | ||
|
||
# The time a user 'waits' between requests | ||
wait_time = locust.between(5,30) | ||
wait_time = locust.between(5, 30) | ||
|
||
@locust.task(weight=1) | ||
def home_page(self): | ||
self.client.get('/') | ||
self.client.get("/") | ||
|
||
@locust.task(weight=5) | ||
def stats(self): | ||
self.client.get('/stats') | ||
self.client.get("/stats") | ||
|
||
@locust.task(weight=15) | ||
def recent(self): | ||
self.client.get('/proposals/recent/5') | ||
self.client.get("/proposals/recent/5") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.