Skip to content

Commit

Permalink
fix(test): Set correct type annotation for period_start and period_end
Browse files Browse the repository at this point in the history
  • Loading branch information
rutwikhdev committed May 29, 2023
1 parent 9a2e446 commit 6dd6b2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions press/press/doctype/payout_order/payout_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
from press.press.doctype.invoice_item.invoice_item import InvoiceItem
from press.press.doctype.payout_order_item.payout_order_item import PayoutOrderItem

from datetime import date


class PayoutOrder(Document):
def validate(self):
Expand Down Expand Up @@ -203,8 +205,8 @@ def get_unaccounted_marketplace_invoice_items():
def create_payout_order_from_invoice_items(
invoice_items: List[InvoiceItem],
recipient: str,
period_start: str,
period_end: str,
period_start: date,
period_end: date,
mode_of_payment: str = "Cash",
notes: str = "",
type: str = "Marketplace",
Expand Down
1 change: 0 additions & 1 deletion press/press/doctype/subscription/test_subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ def create_test_subscription(


class TestSubscription(unittest.TestCase):

def setUp(self):
self.team = create_test_team()

Expand Down

0 comments on commit 6dd6b2c

Please sign in to comment.