mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
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:
committed by
Ville Brofeldt
parent
625555ac7e
commit
7aba89c486
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user