Skip to content

Commit bd220c8

Browse files
Change methods not using its bound instance to staticmethods (#49)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
1 parent b0864eb commit bd220c8

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

tests/test_basic.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
class TestBasic(CustomTestCase):
88
uri = "/cmd/echo"
99

10-
def create_app(self):
10+
@staticmethod
11+
def create_app():
1112
app.config["TESTING"] = True
1213
shell2http.register_command(endpoint="sleep", command_name="sleep")
1314
return app

tests/test_callback_signal.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
class TestCallbackAndSignal(CustomTestCase):
66
uri = "/echo/signal"
77

8-
def create_app(self):
8+
@staticmethod
9+
def create_app():
910
app.config["TESTING"] = True
1011
return app
1112

tests/test_decorators.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ class TestDecorators(CustomTestCase):
77
private_uri = "/cmd/protected/echo"
88
uri = public_uri # default
99

10-
def create_app(self):
10+
@staticmethod
11+
def create_app():
1112
app.config["TESTING"] = True
1213
return app
1314

tests/test_deletion.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
class TestDeletion(CustomTestCase):
66
uri = "/sleep"
77

8-
def create_app(self):
8+
@staticmethod
9+
def create_app():
910
app.config["TESTING"] = True
1011
return app
1112

tests/test_multiple_files.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
class TestMultipleFiles(CustomTestCase):
99
uri = "/cmd/strings"
1010

11-
def create_app(self):
11+
@staticmethod
12+
def create_app():
1213
app.config["TESTING"] = True
1314
return app
1415

0 commit comments

Comments
 (0)