I am trying to Mock/disable datadog statsd during tests. I am able to mock the socket but my metrics increment calls are not getting mocked. Any help appreciated in how to mock the counter increment calls. Thanks!
from datadog import statsd
from mock import Mock
statsd.socket = Mock()
Hi,
I am trying to Mock/disable datadog statsd during tests. I am able to mock the socket but my metrics increment calls are not getting mocked. Any help appreciated in how to mock the counter increment calls. Thanks!