From 6ee420db800c798720269fbc04d0698864380f4a Mon Sep 17 00:00:00 2001 From: sheldygg Date: Wed, 8 Feb 2023 21:04:43 +0200 Subject: [PATCH] update tests --- tests/test_dispatcher/test_router.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/test_dispatcher/test_router.py b/tests/test_dispatcher/test_router.py index d1d423ae..81161dde 100644 --- a/tests/test_dispatcher/test_router.py +++ b/tests/test_dispatcher/test_router.py @@ -38,13 +38,15 @@ class TestRouter: router1 = Router() router2 = Router() - with pytest.raises(ValueError, match="You must provide routers"): - router.include_routers() - router.include_routers(router1, router2) assert router.sub_routers == [router1, router2] + def test_including_many_routers_bad_type(self): + router = Router() + with pytest.raises(ValueError, match="You must provide routers"): + router.include_routers() + def test_include_router_by_string_bad_type(self): router = Router() with pytest.raises(ValueError, match=r"router should be instance of Router"):