mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
try: ditch waitress
This commit is contained in:
+9
-2
@@ -1,8 +1,15 @@
|
||||
from locust import HttpUser, task
|
||||
|
||||
|
||||
class HelloWorldUser(HttpUser):
|
||||
host = "http://localhost:1980"
|
||||
|
||||
# @task
|
||||
# def get_all_artists(self):
|
||||
# self.client.get(
|
||||
# "/getall/artists?start=0&limit=50&sortby=created_date&reverse=1"
|
||||
# )
|
||||
|
||||
@task
|
||||
def hello_world(self):
|
||||
self.client.get("/getall/artists?start=0&limit=50&sortby=created_date&reverse=1")
|
||||
def get_album_info(self):
|
||||
self.client.get("/artist/9e6781427eab4934")
|
||||
|
||||
Reference in New Issue
Block a user