self.check_post(post, '/condition', 302, '/condition?id=1')
# … single /condition
cond = self.cond_as_dict(titles=['foo'], descriptions=['oof'])
+ assert isinstance(cond['_versioned'], dict)
expected_single: dict[str, object]
expected_single = {'is_new': False,
'enabled_processes': [],
# test effect of POST changing title and activeness
post = {'title': 'bar', 'description': 'oof', 'is_active': True}
self.check_post(post, '/condition?id=1', 302)
- assert isinstance(cond['_versioned'], dict)
cond['_versioned']['title'][1] = 'bar'
cond['is_active'] = True
self.check_json_get('/condition?id=1', expected_single)