Change methods not using its bound instance to staticmethods

This commit is contained in:
deepsource-autofix[bot] 2020-11-08 21:54:06 +00:00 committed by GitHub
parent deab57c6dc
commit 25701aac4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 40 additions and 20 deletions

View file

@ -30,22 +30,26 @@ class Test_check_token:
This case gonna be deleted
"""
def test_ok(self, data):
@staticmethod
def test_ok(data):
if check_token(data, TOKEN) is not True:
raise AssertionError
def test_fail(self, data):
@staticmethod
def test_fail(data):
data.pop("username")
if check_token(data, TOKEN) is not False:
raise AssertionError
class Test_check_integrity:
def test_ok(self, data):
@staticmethod
def test_ok(data):
if check_integrity(TOKEN, data) is not True:
raise AssertionError
def test_fail(self, data):
@staticmethod
def test_fail(data):
data.pop("username")
if check_integrity(TOKEN, data) is not False:
raise AssertionError