def test_api_url(self):
     conn = Connection('client_token')
     conn.set_api_url('https://api-test.sigopt.com')
     assert conn.impl.api_url == 'https://api-test.sigopt.com'
Exemplo n.º 2
0
 def test_api_url(self):
   conn = Connection('client_token')
   conn.set_api_url('https://api-test.sigopt.com')
   assert conn.impl.api_url == 'https://api-test.sigopt.com'
Exemplo n.º 3
0
 def test_api_url(self):
   conn = Connection('client_token', _show_deprecation_warning=False)
   conn.set_api_url('https://api-test.sigopt.com')
   assert conn.impl.api_url == 'https://api-test.sigopt.com'
Exemplo n.º 4
0
 def test_create(self):
   conn = Connection(client_token='client_token')
   conn.set_api_url('https://api-test.sigopt.com')
   assert isinstance(conn.clients, ApiResource)
   assert isinstance(conn.experiments, ApiResource)