Skip to content

Commit d843a76

Browse files
committed
fixup! Refactoring: span_name test.
1 parent 575b8b6 commit d843a76

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

tests/test_otel.py

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -316,22 +316,20 @@ def test_id_size(self, http_ver, span, idx, name, size, otel_mode):
316316
+ ["context_extract"] * 2
317317
+ ["context_inject"] * 2
318318
+ ["context_propagate"] * 2
319+
+ ["default_location"] * 20
319320
)
320-
]
321-
+ [(i, "default_location") for i in range(10, 30)],
321+
],
322322
ids=[
323-
"default_location-span0",
324-
"default_location-span1",
325-
"context_ignore-span2",
326-
"context_ignore-span3",
327-
"context_extract-span4",
328-
"context_extract-span5",
329-
"context_inject-span6",
330-
"context_inject-span7",
331-
"context_propagate-span8",
332-
"context_propagate-span9",
333-
]
334-
+ [f"default_location-span{i}" for i in range(10, 30)],
323+
f"{v}-span{i}"
324+
for (i, v) in enumerate(
325+
["default_location"] * 2
326+
+ ["context_ignore"] * 2
327+
+ ["context_extract"] * 2
328+
+ ["context_inject"] * 2
329+
+ ["context_propagate"] * 2
330+
+ ["default_location"] * 20
331+
)
332+
],
335333
)
336334
def test_span_name(self, http_ver, span, name, idx, otel_mode):
337335
assert span.name == name

0 commit comments

Comments
 (0)