fix docstring and flake8

This commit is contained in:
Dan g 2018-07-18 15:01:06 -04:00
parent 7b7010b0a2
commit df76061eec
2 changed files with 3 additions and 2 deletions

View file

@ -95,7 +95,7 @@ class StatsdMixin(object):
class StatsDCollector(object):
"""Collects and submits stats to StatsD via UDP socket.
"""Collects and submits stats to StatsD.
This class should be constructed using the
:meth:`~sprockets.mixins.statsd.install` method. When installed,
@ -104,7 +104,7 @@ class StatsDCollector(object):
:param str host: The StatsD host
:param str port: The StatsD port
:param str protocol: lowercase udp or tcp
:param str protocol: The StatsD protocol. May be either ``udp`` or ``tcp``.
:param str namespace: The StatsD bucket to write metrics into.
:param bool prepend_metric_type: Optional flag to prepend bucket path
with the StatsD metric type

View file

@ -41,6 +41,7 @@ def assert_between(low, value, high):
raise AssertionError('Expected {} to be between {} and {}'.format(
value, low, high))
class TCPStatsdMetricCollectionTests(testing.AsyncHTTPTestCase):
def get_app(self):