Debian Codegraph @

tests/test_coverup_61.py

raw symbols SCIP
1 # file scalene/scalene_json.py:63-68
2 # lines [63, 65, 68]
3 # branches []
4
5 import pytest
6 from unittest.mock import Mock, patch
7
8 # Mock the cloudpickle import in scalene_statistics
9 with patch.dict("sys.modules", {"cloudpickle": Mock()}):
10 from scalene.scalene_json import ScaleneJSON
11
12
13 @pytest.fixture
14 def scalene_json_cleanup():
15 # Setup code if necessary
16 yield
17 # Cleanup code if necessary
18
19
20 def test_scalene_json_init(scalene_json_cleanup):
21 json_obj = ScaleneJSON()
22 assert json_obj.output_file == ""
23 assert json_obj.gpu is False