Browse Source

wasn't making sure this was called and with the correct parameters..

main
John-Mark Gurney 4 years ago
parent
commit
47a2869dc0
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      bitelab/__main__.py

+ 4
- 0
bitelab/__main__.py View File

@@ -286,6 +286,8 @@ Attributes:
self.assertEqual(ret, 0)
self.assertEqual(stdout, output)

gspk.assert_called_with(None)

ac.assert_called_with(base_url='http://someserver/')

#args = { 'sshpubkey': keydata }
@@ -327,6 +329,8 @@ Attributes:
json=dict(sshpubkey=keydata),
auth=BiteAuth('thisisanapikey'), **_httpxargs)

gspk.assert_called_with('bogusfilename')

@patch('bitelab.__main__.get_sshpubkey')
@patch.dict(sys.__dict__, dict(argv=[ '', 'release', 'cora-z7s' ]))
def test_release(self, gspk):


Loading…
Cancel
Save