self.assertEqual(sorted(r.enables), sorted(set2))
self.assertEqual(sorted(r.disables), sorted(set3))
- def test_Process_from_table_row(self) -> None:
+ def test_from_table_row(self) -> None:
"""Test .from_table_row() properly reads in class from DB"""
- self.check_from_table_row()
+ super().test_from_table_row()
self.check_versioned_from_table_row('title', str)
self.check_versioned_from_table_row('description', str)
self.check_versioned_from_table_row('effort', float)
form_data = {'title': 'foo', 'description': 'foo', 'effort': 1.0}
self.post_process(2, form_data | {'condition': []})
self.check_post(form_data | {'condition': [1]}, '/process?id=', 404)
- self.check_post({'title': 'foo', 'description': 'foo'},
+ self.check_post({'title': 'foo', 'description': 'foo',
+ 'is_active': False},
'/condition', 302, '/condition?id=1')
self.post_process(3, form_data | {'condition': [1]})
self.post_process(4, form_data | {'disables': [1]})