예제 #1
0
    def test_providing_retry_override_with_no_retry_invokes_call(self):
        api = self.factory.build(MockApi)

        api.execute_retryable_call("Portfolio",
                                   name="Portfolio",
                                   lusid_retries=0)

        self.assertEqual(api.invocations, 1)
예제 #2
0
    def test_providing_positional_keyword_arguments_success(self):
        api = self.factory.build(MockApi)

        api.execute_retryable_call("Portfolio", name="Portfolio")

        self.assertEqual(api.invocations, 3)
예제 #3
0
    def test_retry_when_lusid_response_contains_retry_header(self):
        api = self.factory.build(MockApi)

        api.execute_retryable_call()

        self.assertEqual(api.invocations, 3)