MCPcopy
hub / github.com/mher/flower / post

Method post

tests/unit/__init__.py:31–34  ·  view source on GitHub ↗
(self, url, **kwargs)

Source from the content-addressed store, hash-verified

29 return self.fetch(url, **kwargs)
30
31 def post(self, url, **kwargs):
32 if 'body' in kwargs and isinstance(kwargs['body'], dict):
33 kwargs['body'] = urlencode(kwargs['body'])
34 return self.fetch(url, method='POST', **kwargs)
35
36 def mock_option(self, name, value):
37 return patch.object(options.mockable(), name, value)

Callers 15

test_unknown_workerMethod · 0.45
test_shutdownMethod · 0.45
test_pool_restartMethod · 0.45
test_pool_growMethod · 0.45
test_pool_shrinkMethod · 0.45
test_pool_autoscaleMethod · 0.45
test_add_consumerMethod · 0.45
test_cancel_consumerMethod · 0.45
test_task_timeoutMethod · 0.45
test_task_ratelimitMethod · 0.45
test_param_escapeMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_unknown_workerMethod · 0.36
test_shutdownMethod · 0.36
test_pool_restartMethod · 0.36
test_pool_growMethod · 0.36
test_pool_shrinkMethod · 0.36
test_pool_autoscaleMethod · 0.36
test_add_consumerMethod · 0.36
test_cancel_consumerMethod · 0.36
test_task_timeoutMethod · 0.36
test_task_ratelimitMethod · 0.36
test_param_escapeMethod · 0.36