11 lines
270 B
Python
11 lines
270 B
Python
from locust import FastHttpUser, task
|
|
|
|
from api import BackendApi
|
|
|
|
class ShortlinkCreate(FastHttpUser):
|
|
def on_start(self):
|
|
self.api = BackendApi(self.client)
|
|
|
|
@task
|
|
def user_create_test(self):
|
|
self.api.shortlink_create("https://example.com") |