Skip to content
Merged
3 changes: 1 addition & 2 deletions e2e_tests/account_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,7 @@ def test_update_account():


def test_update_credit_account():
# Mock or assume the existence of these functions
account_id = "3344334" # Assuming this function exists
account_id = "3344334"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have a way to not have this id hardcoded, but create an account for the test or fetch an existing one?

_credit_limit = 4000
request = PatchCreditAccountRequest(account_id, tags={
"purpose": "tax",
Expand Down
2 changes: 1 addition & 1 deletion unit/models/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def __init__(self, account_id: str, tags: Optional[Dict[str, str]] = None, credi
def to_json_api(self) -> Dict:
payload = {
"data": {
"type": "creditAccount", # Assuming CreditAccountType resolves to "creditAccount"
"type": CreditAccountType,
"attributes": {}
}
}
Expand Down