Skip to content

Commit b9efede

Browse files
committed
add name to tests
1 parent 31eb746 commit b9efede

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_extraction.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,12 +343,14 @@ def test_from_yaml_mixed_patterns(self, temp_yaml_file):
343343

344344
# Pattern with custom template
345345
pattern2 = config.patterns[1]
346+
assert pattern2.name == "setup"
346347
assert pattern2.cumtime_template == "rt_{name}_s"
347348
assert pattern2.cumtime_col == "rt_setup_s"
348349
assert pattern2.extract_percall is False # default
349350

350351
# Pattern with selective metrics and custom template
351352
pattern3 = config.patterns[2]
353+
assert pattern3.name == "my_function"
352354
assert pattern3.extract_cumtime is False
353355
assert pattern3.extract_percall is True
354356
assert pattern3.extract_ncalls is True

0 commit comments

Comments
 (0)