From 02add38ecec896e0a1dfa126eec1e22422d7a7b9 Mon Sep 17 00:00:00 2001
From: Moul <moul@moul.re>
Date: Sat, 22 May 2021 15:57:39 +0200
Subject: [PATCH] [lint] #162: Define staticmethod

Found by pre-commit hook
Otherwise we get: R0201: Method could be a function (no-self-use)
https://stackoverflow.com/a/2674052
---
 tests/api/ws2p/test_ws2p.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/api/ws2p/test_ws2p.py b/tests/api/ws2p/test_ws2p.py
index 2a5e3c12..209fa1f5 100644
--- a/tests/api/ws2p/test_ws2p.py
+++ b/tests/api/ws2p/test_ws2p.py
@@ -31,7 +31,8 @@ from duniterpy.documents.ws2p.messages import DocumentMessage
 
 
 class TestWs2p(unittest.TestCase):
-    def test_block(self):
+    @staticmethod
+    def test_block():
         json_sample = {
             "heads": [
                 {
-- 
GitLab