From c49a3424d5543e766035fb999e33f4668b9648c8 Mon Sep 17 00:00:00 2001 From: Krzysztof Nowak Date: Fri, 4 May 2018 16:13:03 +0200 Subject: [PATCH] tests: metadata test fix Signed-off-by: Krzysztof Nowak --- tests/model/test_metadata.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/model/test_metadata.py b/tests/model/test_metadata.py index d8a7d48..6bcebfe 100644 --- a/tests/model/test_metadata.py +++ b/tests/model/test_metadata.py @@ -85,13 +85,13 @@ def test_group_metadata_update_type(db): g = Group(type=GroupType.Identity) db.session.add(g) db.session.commit() - gm = GroupMetadata(group_id=g.id) + minimal_gm = {'Type': {'Name': 'unknown'}} + gm = GroupMetadata(group_id=g.id, json=minimal_gm) db.session.add(gm) db.session.commit() assert g.data == gm assert g.data.json == gm.json - update_and_compare(gm, {'Title': 'Some title'}) # Add Type update_and_compare(gm, {'Title': 'Some other title', 'Type': {'Name': 'unknown'}})