MCPcopy Index your code
hub / github.com/algorithmiaio/algorithmia-python / test_auth

Method test_auth

Test/regular/CLI_test.py:189–198  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

187 self.assertTrue(os.path.isfile(dest))
188
189 def test_auth(self):
190 # key for test account
191 key = os.getenv('ALGORITHMIA_API_KEY')
192 api_address = "https://api.algorithmia.com"
193 profile = 'default'
194 CLI().auth(api_address, key, profile=profile)
195 resultK = CLI().getAPIkey(profile)
196 resultA = CLI().getAPIaddress(profile)
197 self.assertEqual(resultK, key)
198 self.assertEqual(resultA, api_address)
199
200 def test_auth_cert(self):
201

Callers

nothing calls this directly

Calls 4

CLIClass · 0.90
authMethod · 0.80
getAPIkeyMethod · 0.80
getAPIaddressMethod · 0.80

Tested by

no test coverage detected