self.assertEqual(self.checked_class(id2), by_id_created)
self.check_storage([obj])
- def check_from_table_row(self, id_: int | str) -> None:
+ def check_from_table_row(self) -> None:
"""Test .from_table_row() properly reads in class from DB"""
+ id_ = self.default_ids[0]
obj = self.checked_class(id_) # pylint: disable=not-callable
obj.save(self.db_conn)
assert isinstance(obj.id_, (str, int))