Skip to content

Commit f98ad77

Browse files
committed
minor changes in catalog commands
1 parent 88b7ac5 commit f98ad77

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/modules/catalog/application/command/delete_listing_draft.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from modules.catalog.domain.events import ListingDraftDeletedEvent
55
from modules.catalog.domain.repositories import ListingRepository
66
from modules.catalog.domain.rules import PublishedListingMustNotBeDeleted
7+
from modules.catalog.domain.value_objects import ListingStatus
78
from seedwork.application.command_handlers import CommandResult
89
from seedwork.application.commands import Command
910
from seedwork.application.decorators import command_handler

src/modules/catalog/domain/entities.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
ListingDraftUpdatedEvent,
66
ListingPublishedEvent,
77
)
8-
from modules.catalog.domain.rules import (
9-
ListingAskPriceMustBeGreaterThanZero,
10-
ListingMustBeDraft,
11-
)
8+
from modules.catalog.domain.rules import ListingAskPriceMustBeGreaterThanZero, ListingMustBeDraft
129
from seedwork.domain.entities import AggregateRoot
1310
from seedwork.domain.value_objects import UUID, Money
1411

src/modules/catalog/tests/application/test_delete_listing_draft.py

+2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ def test_delete_listing_draft():
3232

3333
# act
3434
result = delete_listing_draft(command, repository)
35+
36+
print(result)
3537

3638
print(result)
3739

0 commit comments

Comments
 (0)