From 5e640c4bb84c25372605db246b7b5df93cf64f70 Mon Sep 17 00:00:00 2001 From: Eric Pierce Date: Fri, 19 Apr 2024 07:40:25 -0700 Subject: [PATCH] Fix tests --- tests/test_config.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_config.py b/tests/test_config.py index a100201..fc1390f 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -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""" @@ -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 @@ -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): @@ -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 @@ -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):