Config: Set with two datatypes
Signed-off-by: Václav Valíček <valicek1994@gmail.com>
This commit is contained in:
parent
cb5e934c4a
commit
9fffa6bb83
|
@ -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 <class 'str'>"
|
||||
|
||||
x._set_property("cloner_project_name", "č")
|
||||
|
||||
# undefined property
|
||||
with pytest.raises(KeyError) as exc:
|
||||
x._set_property("nonexistent_key", 888)
|
||||
|
|
Loading…
Reference in New Issue
Block a user