Skip to content

Commit baca528

Browse files
authored
MPT-18902 E2E API client exception with the seller tests (#224)
https://softwareone.atlassian.net/wiki/spaces/mpt/pages/5243175002/Seller+Object <!-- This is an auto-generated comment: release notes by coderabbit.ai --> Closes [MPT-18902](https://softwareone.atlassian.net/browse/MPT-18902) - tests/e2e/accounts/conftest.py: currencies fixture now returns a list of currency objects (dicts with keys value, billingEnabled, isDefault) instead of a simple list of strings. - tests/e2e/accounts/sellers/conftest.py: seller_factory's inner _seller sets the seller dictionary key "currency" (singular) to the provided currencies value; the factory parameter remains named currencies but the returned data shape changed from a "currencies" key to "currency" containing the structured list. - No changes to fixture names or function signatures; only the returned data structures were modified. <!-- end of auto-generated comment: release notes by coderabbit.ai --> [MPT-18902]: https://softwareone.atlassian.net/browse/MPT-18902?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
2 parents a158735 + 72838dc commit baca528

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

tests/e2e/accounts/conftest.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ def account_icon(logo_fd):
2323

2424
@pytest.fixture
2525
def currencies():
26-
return ["USD", "EUR"]
26+
return [
27+
{"value": "EUR", "billingEnabled": False, "isDefault": False},
28+
{"value": "USD", "billingEnabled": True, "isDefault": True},
29+
]
2730

2831

2932
@pytest.fixture

tests/e2e/accounts/sellers/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def _seller(
2222
"postCode": "12345",
2323
"country": "US",
2424
},
25-
"currencies": currencies,
25+
"currency": currencies,
2626
"externalId": external_id,
2727
}
2828

0 commit comments

Comments
 (0)