fix(tests): use relevant BaseHandler.__init__ signature

fix breaking tests, change signature of BaseHandler
This commit is contained in:
mpa 2020-05-28 05:34:31 +04:00
parent 0b3702f658
commit de962d043d
No known key found for this signature in database
GPG key ID: BCCFBFCCC9B754A8
4 changed files with 17 additions and 11 deletions

View file

@ -44,7 +44,7 @@ class TestBaseMessageHandlerCommandMixin:
chat=Chat(id=42, type="private"),
from_user=User(id=42, is_bot=False, first_name="Test"),
),
command=CommandObject(prefix="/", command="command", args="args"),
data=dict(command=CommandObject(prefix="/", command="command", args="args")),
)
assert isinstance(handler.command, CommandObject)