15 lines
334 B
Python
15 lines
334 B
Python
from locust import FastHttpUser, task
|
|
|
|
from api import BackendApi, Auth
|
|
|
|
class DummyGet(FastHttpUser):
|
|
def on_start(self):
|
|
self.api = BackendApi(self.client)
|
|
user = self.api.user_create()
|
|
self.auth = self.api.user_login(user)
|
|
|
|
@task
|
|
def dummy_test(self):
|
|
self.api.dummy_get(self.auth)
|
|
|
|
|