Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
epierce committed Apr 19, 2024
1 parent d80017e commit 5e640c4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def test_read_config(self):
config = Config(gac_ui=test_ui, create_config=False)
config.conf_profile = "myprofile"
profile_config = config.get_config_dict()
self.assertEqual(profile_config, {"client_id": "foo"})
self.assertEqual(profile_config, {"client_id": "foo", 'force_classic': True})

def test_read_config_inherited(self):
"""Test to make sure getting config works when inherited"""
Expand All @@ -75,6 +75,7 @@ def test_read_config_inherited(self):
[mybase]
client_id = bar
aws_appname = baz
force_classic = True
[myprofile]
inherits = mybase
client_id = foo
Expand All @@ -89,6 +90,7 @@ def test_read_config_inherited(self):
"client_id": "foo",
"aws_appname": "baz",
"aws_rolename": "myrole",
'force_classic': True,
})

def test_read_nested_config_inherited(self):
Expand All @@ -104,6 +106,7 @@ def test_read_nested_config_inherited(self):
[mybase-level2]
inherits = mybase-level1
aws_appname = baz
force_classic =
[myprofile]
inherits = mybase-level2
client_id = foo
Expand All @@ -116,6 +119,7 @@ def test_read_nested_config_inherited(self):
"client_id": "foo",
"aws_appname": "baz",
"aws_rolename": "myrole",
"force_classic": True
})

def test_fail_if_profile_not_found(self):
Expand Down

0 comments on commit 5e640c4

Please sign in to comment.