Exemplo n.º 1
0
    def setUpClass(cls):

        config = AutoRestHttpInfrastructureTestServiceConfiguration(
            base_url="http://localhost:3000")
        config.log_level = log_level
        config.retry_policy.retries = 3
        cls.client = AutoRestHttpInfrastructureTestService(config)
        return super(HttpTests, cls).setUpClass()
Exemplo n.º 2
0
 def setUp(self):
     config = AutoRestHttpInfrastructureTestServiceConfiguration(
         base_url="http://localhost:3000")
     config.log_level = log_level
     config.retry_policy.retries = 3
     self.client = AutoRestHttpInfrastructureTestService(config)
     self.client._client._adapter.add_hook(
         "request", self.client._client._adapter._test_pipeline)
     return super(HttpTests, self).setUp()