How to use the zoomus.components function in zoomus

To help you get started, we’ve selected a few zoomus 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 actmd / zoomus / tests / zoomus / components / test_base.py View on Github external
def test_post_request_includes_config_details_in_data_when_no_data(self):
        component = components.base.BaseComponent(
            base_uri="http://www.foo.com",
            config={
                "api_key": "KEY",
                "api_secret": "SECRET",
                "version": util.API_VERSION_1,
            },
        )
        responses.add(
            responses.POST, "http://www.foo.com/foo?api_key=KEY&api_secret=SECRET"
        )
        component.post_request("foo")