Fix mock for telegram update

This commit is contained in:
Matthias
2020-10-12 19:44:13 +02:00
parent f299c4188b
commit a39898a5b3
2 changed files with 6 additions and 13 deletions

View File

@@ -297,7 +297,7 @@ def default_conf(testdatadir):
@pytest.fixture
def update():
_update = Update(0)
_update.message = Message(0, 0, datetime.utcnow(), Chat(0, 0))
_update.message = Message(0, datetime.utcnow(), Chat(0, 0))
return _update