fix: add missing init on python pkg key_value (#19428)

* fix: add missing init on python pkg key_value

* fix lint issues

* fix lint issues

(cherry picked from commit fa35109bf2)
This commit is contained in:
Daniel Vaz Gaspar
2022-03-30 12:46:42 +01:00
committed by Ville Brofeldt
parent 625555ac7e
commit 7aba89c486
8 changed files with 35 additions and 8 deletions

View File

@@ -53,6 +53,7 @@ def test_update_id_entry(
key=ID_KEY,
value=NEW_VALUE,
).run()
assert key is not None
assert key.id == ID_KEY
entry = db.session.query(KeyValueEntry).filter_by(id=ID_KEY).autoflush(False).one()
assert pickle.loads(entry.value) == NEW_VALUE
@@ -73,6 +74,7 @@ def test_update_uuid_entry(
key=UUID_KEY,
value=NEW_VALUE,
).run()
assert key is not None
assert key.uuid == UUID_KEY
entry = (
db.session.query(KeyValueEntry).filter_by(uuid=UUID_KEY).autoflush(False).one()