refactor: rename apply_event to apply

This commit is contained in:
2026-07-29 10:44:12 -04:00
parent 511a66ab66
commit fa65782059
5 changed files with 26 additions and 17 deletions

View File

@@ -248,7 +248,7 @@ def test_classified_ad_is_instance_of_entity():
assert isinstance(ad, Entity)
def test_classified_ad_can_use_entity_apply_event():
def test_classified_ad_can_use_entity_apply():
ad = ClassifiedAd(
id=ClassifiedAdId(value=uuid4()),
_ownerId=UserId(value=uuid4()),
@@ -258,7 +258,7 @@ def test_classified_ad_can_use_entity_apply_event():
)
event = ClassifiedAdSentForReview(id=ad.id.value)
updated_ad = ad.apply_event(event)
updated_ad = ad.apply(event)
assert updated_ad.get_changes() == (ad.get_changes()[0], event)
assert len(ad.get_changes()) == 1