Skip to content

Commit

Permalink
Replace some ranges by lists.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimf5 committed May 6, 2024
1 parent 11546d0 commit 01b835f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/test_otel.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,17 +364,15 @@ def test_do_request(
class TestOTelSpans:
@pytest.mark.parametrize(
("batch", "size"),
[(_, 10) for _ in range(3)],
ids=[f"batch {_}" for _ in range(3)],
[(0, 10), (1, 10), (2, 10)],
ids=["batch 0", "batch 1", "batch 2"],
)
def test_batch_size(self, http_ver, case_spans, batch, size, otel_mode):
assert size == len(case_spans[batch][0].scope_spans[0].spans)

@pytest.mark.depends(on=["test_batch_size"])
@pytest.mark.parametrize(
"batch",
[_ for _ in range(3)],
ids=[f"batch {_}" for _ in range(3)],
"batch", [0, 1, 2], ids=["batch 0", "batch 1", "batch 2"]
)
def test_service_name(self, http_ver, case_spans, batch, otel_mode):
assert f"test_http{http_ver}" == span_attr(
Expand Down

0 comments on commit 01b835f

Please sign in to comment.