From 9fffa6bb83a270bf2a6385437c029de56e8a6351 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Val=C3=AD=C4=8Dek?= Date: Sun, 26 Jun 2022 07:57:54 +0200 Subject: [PATCH] Config: Set with two datatypes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Václav Valíček --- tests/lib/test_cloner_config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/lib/test_cloner_config.py b/tests/lib/test_cloner_config.py index 164440a..cfeb1d2 100644 --- a/tests/lib/test_cloner_config.py +++ b/tests/lib/test_cloner_config.py @@ -68,6 +68,8 @@ def test_set_property(): x._set_property("cloner_interval", "č") assert exc.exconly() == "ValueError: Invalid value for key cloner_interval: type is " + x._set_property("cloner_project_name", "č") + # undefined property with pytest.raises(KeyError) as exc: x._set_property("nonexistent_key", 888)