Instructs the mock server to ignore N requests from this session, giving no response.
(self, count)
| 65 | self.proxy = config.proxy_url |
| 66 | |
| 67 | def no_response(self, count): |
| 68 | """Instructs the mock server to ignore N requests from this |
| 69 | session, giving no response.""" |
| 70 | if self.is_mock_server: |
| 71 | self.headers["mock-server-session-no-response-count"] = str( |
| 72 | count |
| 73 | ) |
| 74 | |
| 75 | def respond_with_429(self, count): |
| 76 | """Instructs the mock server to reject N /translate requests from |
no outgoing calls
no test coverage detected