From 1de641b374607060f040aa0af021ff81d1788e22 Mon Sep 17 00:00:00 2001 From: yashlamba Date: Thu, 26 Oct 2023 17:29:55 +0200 Subject: [PATCH] tests: core: test_kwargs_override expect error only with diff value --- tests/test_core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_core.py b/tests/test_core.py index 69d9706..c5e4dbe 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -426,14 +426,14 @@ def test(): def test_kwargs_override(app): - """Test if optional arguments cannot be overriden.""" + """Test if optional arguments cannot be overriden with different value.""" @app.route("/test") def test(): return "view test" with raises(RuntimeError): - current_menu.submenu("test").register("test", "Test", url="/test") + current_menu.submenu("test").register("test", "Test", url="/test1") def test_external_url(app):