Improve docstrings for key-value store

This commit is contained in:
Matthias
2023-04-08 10:09:31 +02:00
parent 4d4f4bf23e
commit ac817b7808
2 changed files with 11 additions and 0 deletions

View File

@@ -32,6 +32,8 @@ def test_key_value_store(time_machine):
# test deleting
KeyValueStore.delete_value("test_float")
assert KeyValueStore.get_value("test_float") is None
# Delete same value again (should not fail)
KeyValueStore.delete_value("test_float")
with pytest.raises(ValueError, match=r"Unknown value type"):
KeyValueStore.store_value("test_float", {'some': 'dict'})