-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: update tests to account for the new function signature
- Loading branch information
1 parent
208c3d5
commit ac6b250
Showing
5 changed files
with
15 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -340,11 +340,12 @@ def test_create_credit_card_charge(db): | |
expense_group = ExpenseGroup.objects.get(id=4) | ||
credit_card = CreditCardCharge.create_credit_card_charge(expense_group) | ||
configuration = Configuration.objects.get(workspace_id=2) | ||
credit_card_charge_lineitem = CreditCardChargeLineItem.create_credit_card_charge_lineitem(expense_group, configuration) | ||
credit_card_charge_lineitems = CreditCardChargeLineItem.create_credit_card_charge_lineitems(expense_group, configuration) | ||
|
||
assert credit_card_charge_lineitem.amount == 100.00 | ||
assert credit_card_charge_lineitem.memo == '[email protected] - Accounts Payable - 2021-11-16 - C/2021/11/R/1 - ' | ||
assert credit_card_charge_lineitem.billable == False | ||
line = credit_card_charge_lineitems[0] | ||
assert line.amount == 100.00 | ||
assert line.memo == '[email protected] - Accounts Payable - 2021-11-16 - C/2021/11/R/1 - ' | ||
assert line.billable == False | ||
|
||
assert credit_card.currency == '1' | ||
assert credit_card.transaction_date <= datetime.now().strftime('%Y-%m-%dT%H:%M:%S') | ||
|
@@ -363,11 +364,12 @@ def test_create_credit_card_charge(db): | |
|
||
credit_card = CreditCardCharge.create_credit_card_charge(expense_group) | ||
configuration = Configuration.objects.get(workspace_id=1) | ||
credit_card_charge_lineitem = CreditCardChargeLineItem.create_credit_card_charge_lineitem(expense_group, configuration) | ||
credit_card_charge_lineitems = CreditCardChargeLineItem.create_credit_card_charge_lineitems(expense_group, configuration) | ||
|
||
assert credit_card_charge_lineitem.amount == 100.00 | ||
assert credit_card_charge_lineitem.memo == '[email protected] - Accounts Payable - 2021-11-15 - C/2021/11/R/6 - ' | ||
assert credit_card_charge_lineitem.billable == False | ||
line = credit_card_charge_lineitems[0] | ||
assert line.amount == 100.00 | ||
assert line.memo == '[email protected] - Accounts Payable - 2021-11-15 - C/2021/11/R/6 - ' | ||
assert line.billable == False | ||
|
||
assert credit_card.currency == '1' | ||
assert credit_card.transaction_date <= datetime.now().strftime('%Y-%m-%dT%H:%M:%S') | ||
|