Skip to content

Commit 31e4849

Browse files
committed
Fix test that doesn't work in Windows
1 parent 0b8801a commit 31e4849

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

tests/CLI/modules/config_tests.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,21 @@ def test_setup(self, mocked_input, getpass, confirm_mock, client):
6868
with tempfile.NamedTemporaryFile() as config_file:
6969
confirm_mock.return_value = True
7070
getpass.return_value = 'A' * 64
71-
mocked_input.side_effect = ['public', 'user', 0]
71+
mocked_input.side_effect = ['public', 'user', 0, 'dark']
7272

7373
result = self.run_command(['--config=%s' % config_file.name, 'config', 'setup'])
7474

7575
self.assert_no_fail(result)
7676
self.assertIn('Configuration Updated Successfully', result.output)
7777
contents = config_file.read().decode("utf-8")
78-
78+
print('***************************')
79+
print(contents)
80+
print('***************************')
7981
self.assertIn('[softlayer]', contents)
8082
self.assertIn('username = user', contents)
8183
self.assertIn('api_key = AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', contents)
8284
self.assertIn('endpoint_url = %s' % consts.API_PUBLIC_ENDPOINT, contents)
85+
self.assertIn('theme = failed', contents)
8386

8487
@mock.patch('SoftLayer.Client')
8588
@mock.patch('SoftLayer.CLI.formatting.confirm')

0 commit comments

Comments
 (0)