From d7192f7c5fee96aac9b5f5e5eeec248fe398d1fb Mon Sep 17 00:00:00 2001 From: skelmis Date: Sun, 25 Feb 2024 19:26:41 +1300 Subject: [PATCH] fix: tests --- tests/test_interaction_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_interaction_handler.py b/tests/test_interaction_handler.py index 6c87ba8..e24a515 100644 --- a/tests/test_interaction_handler.py +++ b/tests/test_interaction_handler.py @@ -57,8 +57,8 @@ async def test_new_handler(bot: SuggestionsBot): async def test_fetch_handler(bot: SuggestionsBot): application_id = 123456789 - with pytest.raises(NonExistentEntry): - await InteractionHandler.fetch_handler(application_id, bot) + r_1 = await InteractionHandler.fetch_handler(application_id, bot) + assert r_1 is None mock = AsyncMock() mock.client = bot