Skip to content

Commit 6dd6b2c

Browse files
committed
fix(test): Set correct type annotation for period_start and period_end
1 parent 9a2e446 commit 6dd6b2c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

press/press/doctype/payout_order/payout_order.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
from press.press.doctype.invoice_item.invoice_item import InvoiceItem
1111
from press.press.doctype.payout_order_item.payout_order_item import PayoutOrderItem
1212

13+
from datetime import date
14+
1315

1416
class PayoutOrder(Document):
1517
def validate(self):
@@ -203,8 +205,8 @@ def get_unaccounted_marketplace_invoice_items():
203205
def create_payout_order_from_invoice_items(
204206
invoice_items: List[InvoiceItem],
205207
recipient: str,
206-
period_start: str,
207-
period_end: str,
208+
period_start: date,
209+
period_end: date,
208210
mode_of_payment: str = "Cash",
209211
notes: str = "",
210212
type: str = "Marketplace",

press/press/doctype/subscription/test_subscription.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ def create_test_subscription(
2828

2929

3030
class TestSubscription(unittest.TestCase):
31-
3231
def setUp(self):
3332
self.team = create_test_team()
3433

0 commit comments

Comments
 (0)