How to use the apiron.StreamingEndpoint function in apiron

To help you get started, we’ve selected a few apiron examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ithaka / apiron / tests / test_endpoint.py View on Github external
def test_repr_method(self):
        foo = apiron.StreamingEndpoint(path="/bar/baz")
        assert repr(foo) == "StreamingEndpoint(path='/bar/baz')"
github ithaka / apiron / tests / test_endpoint.py View on Github external
def test_str_method(self):
        foo = apiron.StreamingEndpoint(path="/bar/baz")
        assert str(foo) == "/bar/baz"
github ithaka / apiron / tests / test_endpoint.py View on Github external
def test_format_response(self):
        foo = apiron.StreamingEndpoint()
        mock_response = mock.Mock()
        assert mock_response.iter_content(chunk_size=None) == foo.format_response(mock_response)