diff --git a/biggraphite/drivers/tracing.py b/biggraphite/drivers/tracing.py index cc3742a56e..476381410b 100644 --- a/biggraphite/drivers/tracing.py +++ b/biggraphite/drivers/tracing.py @@ -12,7 +12,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -"""Function used for the tracing of Biggraphite""" +"""Function used for the tracing of Biggraphite.""" try: from opencensus.trace import execution_context diff --git a/setup.py b/setup.py index f176d24020..507be75b82 100755 --- a/setup.py +++ b/setup.py @@ -41,7 +41,7 @@ def _read_reqs(relpath): if not PY3: - _INSTALL_REQUIRES += ('futures', 'enum34') + _INSTALL_REQUIRES += ('futures', 'enum34') packages = setuptools.find_packages() diff --git a/tests/drivers/test_tracing.py b/tests/drivers/test_tracing.py index 81cfedc2f7..c515fd591f 100644 --- a/tests/drivers/test_tracing.py +++ b/tests/drivers/test_tracing.py @@ -24,9 +24,10 @@ class TestTracingTrace(unittest.TestCase): + """Test tracing integration of Biggraphite.""" + def testDecoratorTrace(self): - """Test that we wrap correctly the function and that a span - is created.""" + """Test that we wrap correctly the function and that a span is created.""" test_tracer = tracer.Tracer() def test_traced_func(self): @@ -39,14 +40,14 @@ def test_traced_func(self): wrapped = tracing.trace(test_traced_func) mock_self = mock.Mock() - mock_self.module_name = 'module_name' + mock_self.module_name = "module_name" span_name = wrapped(mock_self) - expected_name = 'module_name.test_traced_func' + expected_name = "module_name.test_traced_func" self.assertEqual(expected_name, span_name) if __name__ == "__main__": - unittest.main() \ No newline at end of file + unittest.main()