From 3d3d3c28d88d1f7bad2b9a274fe9ad4cfaf01554 Mon Sep 17 00:00:00 2001 From: Bartek Grzybowski Date: Thu, 5 Mar 2020 10:28:03 +0100 Subject: Fix indentation and whitespace issues in Python scripts Reported by pylint. Change-Id: I9d5ee152f3587bb2d7e8abee919e4ffe47d8ae85 Issue-ID: INT-1427 Signed-off-by: Bartek Grzybowski --- S3Ptools/locustfile.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'S3Ptools') diff --git a/S3Ptools/locustfile.py b/S3Ptools/locustfile.py index 5fe5b3786..91cd49974 100644 --- a/S3Ptools/locustfile.py +++ b/S3Ptools/locustfile.py @@ -1,15 +1,15 @@ import random import string from locust import HttpLocust, TaskSet, task - + class UserBehavior(TaskSet): def on_start(self): """ on_start is called when a Locust start before any task is scheduled """ self.init() - + def init(self): pass - + @task(1) def DCI(self): method = "POST" @@ -20,7 +20,7 @@ class UserBehavior(TaskSet): print(data) response = self.client.request(method, url, headers=headers, data=data) print(response.json()) - + class WebsiteUser(HttpLocust): task_set = UserBehavior host = "http://10.0.5.1:8080" -- cgit 1.2.3-korg