Merge branch '3153-auto-setup-tests' into 3153-auto-setup-user
[arvados.git] / sdk / python / tests / test_api.py
index 4917d004ea706302785b9d0d5498c297cfb83c78..2fd709e3ab2dc0eb7f41a57343c7cc5382e5a249 100644 (file)
@@ -5,9 +5,9 @@ import arvados
 import httplib2
 import json
 import mimetypes
-import unittest
 import os
 import run_test_server
+import unittest
 
 from apiclient.http import RequestMockBuilder
 from httplib import responses as HTTP_RESPONSES
@@ -31,6 +31,11 @@ class ArvadosApiClientTest(unittest.TestCase):
 
     @classmethod
     def setUpClass(cls):
+        # The apiclient library has support for mocking requests for
+        # testing, but it doesn't extend to the discovery document
+        # itself. For now, bring up an API server that will serve
+        # a discovery document.
+        # FIXME: Figure out a better way to stub this out.
         run_test_server.run()
         mock_responses = {
             'arvados.humans.delete': (cls.response_from_code(500), ""),