Skip to content
This repository has been archived by the owner on Jan 29, 2025. It is now read-only.

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
geobeau authored and Adrien Gentil committed Oct 18, 2018
1 parent 2e0320c commit f70390e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion biggraphite/drivers/tracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def _read_reqs(relpath):


if not PY3:
_INSTALL_REQUIRES += ('futures', 'enum34')
_INSTALL_REQUIRES += ('futures', 'enum34')


packages = setuptools.find_packages()
Expand Down
11 changes: 6 additions & 5 deletions tests/drivers/test_tracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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()
unittest.main()

0 comments on commit f70390e

Please sign in to comment.