Skip to content

Commit a2dc105

Browse files
committed
chore: format
1 parent 01cf5a6 commit a2dc105

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

unit_tests/sources/declarative/transformations/config_transformations/test_config_remap_field.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def test_given_valid_inputs_when_transform_then_field_is_remapped(self):
2020
remap_transform = RemapField(
2121
field_path=["authorization", "auth_type"],
2222
map={"client_credentials": "oauth2", "api_key": "key_auth"},
23-
config=config
23+
config=config,
2424
)
2525

2626
original_config = deepcopy(config)
@@ -113,16 +113,19 @@ def test_multiple_transformations_applied_in_sequence(self):
113113
assert config["environment"] == "development"
114114

115115
def test_amazon_seller_partner_marketplace_remap_with_interpolated_mapping(self):
116-
117116
mapping = {
118117
"endpoint": {
119118
"ES": "{{ 'https://sellingpartnerapi' if config.environment == 'production' else 'https://sandbox.sellingpartnerapi' }}-eu.amazon.com",
120119
}
121120
}
122121
sandbox_config = {"environment": "sandbox", "marketplace": "ES"}
123122
production_config = {"environment": "production", "marketplace": "ES"}
124-
RemapField(field_path=["marketplace"], map=mapping["endpoint"], config=sandbox_config).transform(sandbox_config)
125-
RemapField(field_path=["marketplace"], map=mapping["endpoint"], config=production_config).transform(production_config)
123+
RemapField(
124+
field_path=["marketplace"], map=mapping["endpoint"], config=sandbox_config
125+
).transform(sandbox_config)
126+
RemapField(
127+
field_path=["marketplace"], map=mapping["endpoint"], config=production_config
128+
).transform(production_config)
126129

127130
assert sandbox_config["marketplace"] == "https://sandbox.sellingpartnerapi-eu.amazon.com"
128131
assert production_config["marketplace"] == "https://sellingpartnerapi-eu.amazon.com"

0 commit comments

Comments
 (0)