示例#1
0
 def setUpClass(cls):
     cls.api = hyou.api.API(http_mocks.ReplayHttp('unittest-sheets.json'),
                            discovery=False)
示例#2
0
 def test_discovery(self):
     hyou.client.API(http_mocks.ReplayHttp(), discovery=True)
示例#3
0
 def setUpClass(cls):
     cls.api = hyou.client.API(http_mocks.ReplayHttp(), discovery=False)
示例#4
0
 def test_no_discovery(self):
     hyou.client.API(http_mocks.ReplayHttp(), discovery=False)
示例#5
0
 def setUpClass(cls):
     cls.api = hyou.api.API(
         http_mocks.ReplayHttp('unittest-collection-write.json'),
         discovery=False)
示例#6
0
 def test_discovery(self):
     hyou.api.API(http_mocks.ReplayHttp('unittest-collection.json'),
                  discovery=True)
示例#7
0
 def test_no_discovery(self):
     hyou.api.API(http_mocks.ReplayHttp(None), discovery=False)
示例#8
0
文件: api_test.py 项目: yazici/hyou
 def test_discovery(self):
     with suppress_oauth2client_warnings():
         hyou.api.API(http_mocks.ReplayHttp('unittest-collection.json'),
                      discovery=True)