From 746eead0dac568f9aa2114f4f4a844a07eb6242b Mon Sep 17 00:00:00 2001 From: Oleg A Date: Fri, 29 Nov 2019 23:46:38 +0300 Subject: [PATCH] #238 Fixed deep_link = None case --- aiogram/dispatcher/filters/builtin.py | 2 +- tests/test_filters.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aiogram/dispatcher/filters/builtin.py b/aiogram/dispatcher/filters/builtin.py index ebbf4068..7f84c964 100644 --- a/aiogram/dispatcher/filters/builtin.py +++ b/aiogram/dispatcher/filters/builtin.py @@ -180,7 +180,7 @@ class CommandStart(Command): return {'deep_link': match} return False - return check is not False + return {'deep_link': None} class CommandHelp(Command): diff --git a/tests/test_filters.py b/tests/test_filters.py index ddb3dfc8..37f14129 100644 --- a/tests/test_filters.py +++ b/tests/test_filters.py @@ -271,7 +271,7 @@ class TestCommandStart: test_filter = CommandStart() # empty filter message = Message(text=self.START) result = await test_filter.check(message) - assert result is True + assert result is not False async def test_start_command_payload_is_matched(self): test_filter = CommandStart(deep_link=self.GOOD)