refactor: rename apply_event to apply
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user