MCPcopy
hub / github.com/awslabs/aws-shell / test_config_off

Method test_config_off

tests/integration/test_config.py:24–41  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

22class ConfigTest(unittest.TestCase):
23
24 def test_config_off(self):
25 try:
26 os.remove(build_config_file_path('test-awsshellrc'))
27 except OSError:
28 pass
29 self.aws_shell = AWSShell(None, mock.Mock(), mock.Mock())
30 self.aws_shell.model_completer.match_fuzzy = False
31 self.aws_shell.enable_vi_bindings = False
32 self.aws_shell.show_completion_columns = False
33 self.aws_shell.show_help = False
34 self.aws_shell.theme = 'none'
35 self.aws_shell.save_config()
36 self.aws_shell.load_config()
37 assert self.aws_shell.model_completer.match_fuzzy == False
38 assert self.aws_shell.enable_vi_bindings == False
39 assert self.aws_shell.show_completion_columns == False
40 assert self.aws_shell.show_help == False
41 assert self.aws_shell.theme == 'none'
42
43 def test_config_on(self):
44 self.aws_shell = AWSShell(None, mock.Mock(), mock.Mock())

Callers

nothing calls this directly

Calls 4

build_config_file_pathFunction · 0.90
AWSShellClass · 0.90
save_configMethod · 0.80
load_configMethod · 0.80

Tested by

no test coverage detected