Skip to content

Commit d06251d

Browse files
committed
fix config settings in tests
1 parent c694dbc commit d06251d

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

tests/test_main.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ def test_get_profile_name_accrole_resolve_alias_do_not_include_paths(self):
197197
friendly_account_name='Account: my-org-master (123456789012)',
198198
friendly_role_name='administrator/administrator')
199199
cred_profile = 'acc-role'
200-
resolve_alias = 'True'
201-
include_path = 'False'
200+
resolve_alias = True
201+
include_path = False
202202
self.assertEqual(creds.get_profile_name(cred_profile, include_path, naming_data, resolve_alias, role), "my-org-master-administrator")
203203

204204
def test_get_profile_accrole_name_do_not_resolve_alias_do_not_include_paths(self):
@@ -210,8 +210,8 @@ def test_get_profile_accrole_name_do_not_resolve_alias_do_not_include_paths(self
210210
friendly_account_name='Account: my-org-master (123456789012)',
211211
friendly_role_name='administrator/administrator')
212212
cred_profile = 'acc-role'
213-
resolve_alias = 'False'
214-
include_path = 'False'
213+
resolve_alias = False
214+
include_path = False
215215
self.assertEqual(creds.get_profile_name(cred_profile, include_path, naming_data, resolve_alias, role),
216216
"123456789012-administrator")
217217

@@ -224,8 +224,8 @@ def test_get_profile_accrole_name_do_not_resolve_alias_include_paths(self):
224224
friendly_account_name='Account: my-org-master (123456789012)',
225225
friendly_role_name='administrator/administrator')
226226
cred_profile = 'acc-role'
227-
resolve_alias = 'False'
228-
include_path = 'True'
227+
resolve_alias = False
228+
include_path = True
229229
self.assertEqual(creds.get_profile_name(cred_profile, include_path, naming_data, resolve_alias, role),
230230
"123456789012-/some/long/extended/path/administrator")
231231

@@ -238,8 +238,8 @@ def test_get_profile_name_role(self):
238238
friendly_account_name='Account: my-org-master (123456789012)',
239239
friendly_role_name='administrator/administrator')
240240
cred_profile = 'role'
241-
resolve_alias = 'False'
242-
include_path = 'True'
241+
resolve_alias = False
242+
include_path = True
243243
self.assertEqual(creds.get_profile_name(cred_profile, include_path, naming_data, resolve_alias, role),
244244
'administrator')
245245

@@ -252,8 +252,8 @@ def test_get_profile_name_account_resolve_alias(self):
252252
friendly_account_name='Account: my-org-master (123456789012)',
253253
friendly_role_name='administrator/administrator')
254254
cred_profile = 'acc'
255-
resolve_alias = 'True'
256-
include_path = 'True'
255+
resolve_alias = True
256+
include_path = True
257257
self.assertEqual(creds.get_profile_name(cred_profile, include_path, naming_data, resolve_alias, role),
258258
'my-org-master')
259259

@@ -266,8 +266,8 @@ def test_get_profile_name_account_do_not_resolve_alias(self):
266266
friendly_account_name='Account: my-org-master (123456789012)',
267267
friendly_role_name='administrator/administrator')
268268
cred_profile = 'acc'
269-
resolve_alias = 'False'
270-
include_path = 'True'
269+
resolve_alias = False
270+
include_path = True
271271
self.assertEqual(creds.get_profile_name(cred_profile, include_path, naming_data, resolve_alias, role),
272272
'123456789012')
273273

@@ -280,8 +280,8 @@ def test_get_profile_name_default(self):
280280
friendly_account_name='Account: my-org-master (123456789012)',
281281
friendly_role_name='administrator/administrator')
282282
cred_profile = 'default'
283-
resolve_alias = 'False'
284-
include_path = 'True'
283+
resolve_alias = False
284+
include_path = True
285285
self.assertEqual(creds.get_profile_name(cred_profile, include_path, naming_data, resolve_alias, role),
286286
'default')
287287

@@ -294,7 +294,7 @@ def test_get_profile_name_else(self):
294294
friendly_account_name='Account: my-org-master (123456789012)',
295295
friendly_role_name='administrator/administrator')
296296
cred_profile = 'foo'
297-
resolve_alias = 'False'
298-
include_path = 'True'
297+
resolve_alias = False
298+
include_path = True
299299
self.assertEqual(creds.get_profile_name(cred_profile, include_path, naming_data, resolve_alias, role),
300300
'foo')

0 commit comments

Comments
 (0)