| 1 | # file scalene/scalene_output.py:47-55 |
| 2 | # lines [47, 49, 52, 55] |
| 3 | # branches [] |
| 4 | |
| 5 | import pytest |
| 6 | from scalene.scalene_output import ScaleneOutput |
| 7 | |
| 8 | |
| 9 | @pytest.fixture |
| 10 | def scalene_output_cleanup(): |
| 11 | # Fixture to clean up any changes made to the ScaleneOutput instance |
| 12 | yield |
| 13 | # No cleanup needed since we are not modifying any class attributes |
| 14 | |
| 15 | |
| 16 | def test_scalene_output_init(scalene_output_cleanup): |
| 17 | output = ScaleneOutput() |
| 18 | assert ( |
| 19 | output.output_file == "" |
| 20 | ), "The output_file should be initialized to an empty string." |
| 21 | assert not output.html, "The html flag should be initialized to False." |
| 22 | assert not output.gpu, "The gpu flag should be initialized to False." |