Config: Set with two datatypes

Signed-off-by: Václav Valíček <valicek1994@gmail.com>
This commit is contained in:
Václav Valíček 2022-06-26 07:57:54 +02:00
parent cb5e934c4a
commit 9fffa6bb83
Signed by: valicek
GPG Key ID: FF05BDCA0C73BB31

View File

@ -68,6 +68,8 @@ def test_set_property():
x._set_property("cloner_interval", "č") x._set_property("cloner_interval", "č")
assert exc.exconly() == "ValueError: Invalid value for key cloner_interval: type is <class 'str'>" assert exc.exconly() == "ValueError: Invalid value for key cloner_interval: type is <class 'str'>"
x._set_property("cloner_project_name", "č")
# undefined property # undefined property
with pytest.raises(KeyError) as exc: with pytest.raises(KeyError) as exc:
x._set_property("nonexistent_key", 888) x._set_property("nonexistent_key", 888)