Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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")