| 1 | # file scalene/scalene_output.py:24-46 |
| 2 | # lines [24, 27, 30, 33, 36, 39, 42, 45] |
| 3 | # branches [] |
| 4 | |
| 5 | import pytest |
| 6 | from scalene.scalene_output import ScaleneOutput |
| 7 | |
| 8 | |
| 9 | def test_scalene_output_attributes(): |
| 10 | # Test to ensure the attributes of ScaleneOutput are as expected |
| 11 | assert ScaleneOutput.max_sparkline_len_file == 27 |
| 12 | assert ScaleneOutput.max_sparkline_len_line == 9 |
| 13 | assert ScaleneOutput.highlight_percentage == 33 |
| 14 | assert ScaleneOutput.highlight_color == "bold red" |
| 15 | assert ScaleneOutput.memory_color == "dark_green" |
| 16 | assert ScaleneOutput.gpu_color == "yellow4" |
| 17 | assert ScaleneOutput.copy_volume_color == "yellow4" |