def test_mptt_cqrs_tracked_fields_related_fields(): instance = models.MPTTWithTrackingModel() tracker = getattr(instance, FIELDS_TRACKER_FIELD_NAME) assert_tracked_fields(models.MPTTWithTrackingModel, tracker.fields)
def test_cqrs_tracked_fields_all_related_fields(mocker): instance = models.TrackedFieldsAllWithChildModel() tracker = getattr(instance, FIELDS_TRACKER_FIELD_NAME) assert_tracked_fields(models.TrackedFieldsAllWithChildModel, tracker.fields)