mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Change methods not using its bound instance to staticmethods
This commit is contained in:
parent
deab57c6dc
commit
25701aac4f
11 changed files with 40 additions and 20 deletions
|
|
@ -23,10 +23,12 @@ def invalid_token_fixture(request):
|
|||
|
||||
|
||||
class TestCheckToken:
|
||||
def test_valid(self):
|
||||
@staticmethod
|
||||
def test_valid():
|
||||
if check_token(VALID_TOKEN) is not True:
|
||||
raise AssertionError
|
||||
|
||||
def test_invalid_token(self, invalid_token):
|
||||
@staticmethod
|
||||
def test_invalid_token(invalid_token):
|
||||
with pytest.raises(ValidationError):
|
||||
check_token(invalid_token)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue