fix(core): Add overrides for delete so delete history saved for items with parent model

!22 fixes #53
This commit is contained in:
2024-06-10 02:44:57 +09:30
parent fe0696fee6
commit 8d6826f7c0
3 changed files with 86 additions and 24 deletions

View File

@ -35,3 +35,21 @@ class History(TestCase):
fields required `parent_item_pk` and `parent_item_class
"""
pass
@pytest.mark.skip(reason="to be written")
def test_history_save_calls_save_history():
""" During model save, self.save_history is called
This method saves the history to the database
"""
pass
@pytest.mark.skip(reason="to be written")
def test_history_delete_calls_save_history():
""" During model delete, self.save_history is called
This method saves the delete history to the database for parent objects
"""
pass