Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,13 @@ def test_execute(self):
def test_executemany(self):
"""Should create a child span for executemany
"""
with self._tracer.start_as_current_span("rootSpan"):
data = ["1", "2", "3"]
with self._tracer.start_as_current_span("rootSpan"), self.assertRaises(
Exception
):
data = [("1"), ("2"), ("3")]
stmt = "INSERT INTO test (id) VALUES (%s)"
self._cursor.executemany(stmt, data)
self.validate_spans()
self.validate_spans()

def test_callproc(self):
"""Should create a child span for callproc
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ envlist =

[travis]
python =
3.8: py38, lint, docs, docker-tests
3.7: py37, lint, docs, docker-tests

[testenv]
deps =
Expand Down