Skip to content

Commit 4e51c43

Browse files
committed
fix: TT-418 code smell resolved
1 parent 12c1663 commit 4e51c43

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

V2/tests/integration/daos/customers_dao_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def test__update_customer_dao__returns_an_updated_customer_dto__when_updates_cor
128128
assert updated_customer.__dict__ == inserted_customer
129129

130130

131-
def test__update_customer_dao__returns_None__when_an_incorrect_id_is_passed(
131+
def test__update_customer_dao__returns_none__when_an_incorrect_id_is_passed(
132132
test_db, customer_factory, create_fake_dao, insert_customer
133133
):
134134
dao = create_fake_dao(test_db)

V2/time_tracker/customers/_application/_customers/_create_customer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ def create_customer(req: func.HttpRequest) -> func.HttpResponse:
5151
)
5252

5353

54-
def _validate_customer(customer_data: dict) -> bool:
54+
def _validate_customer(customer_data: dict) -> typing.List[str]:
5555
return [field.name for field in dataclasses.fields(_domain.Customer)
5656
if (field.name not in customer_data) and (field.type != typing.Optional[field.type])]

0 commit comments

Comments
 (0)