try: ditch waitress

This commit is contained in:
cwilvx
2025-02-07 17:10:27 +03:00
parent 7082f30209
commit beec5bc7d3
6 changed files with 1666 additions and 69 deletions
+9 -2
View File
@@ -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")