def test_camdemo(): sys.argv = ['camera_demo'] tool = CameraDemo() tool.num_events = 10 tool.cleanframes = 2 tool.display = False tool.run(argv=[])
def test_camdemo(): from ctapipe.tools.camdemo import CameraDemo sys.argv = ['camera_demo'] tool = CameraDemo() tool.num_events = 10 tool.cleanframes = 2 tool.display = False tool.run(argv=[])
def test_camdemo(): from ctapipe.tools.camdemo import CameraDemo sys.argv = ['camera_demo'] tool = CameraDemo() tool.num_events = 10 tool.cleanframes = 2 tool.display = False tool.run(argv=[]) with pytest.raises(SystemExit): tool.run(['--help-all'])
def test_camdemo(tmpdir): from ctapipe.tools.camdemo import CameraDemo sys.argv = ["camera_demo"] tool = CameraDemo() tool.num_events = 10 tool.cleanframes = 2 tool.display = False assert run_tool(tool, cwd=tmpdir) == 0 assert run_tool(tool, ["--help-all"]) == 0
def test_camdemo(): tool = CameraDemo() tool.num_events = 10 tool.cleanframes = 2 tool.display = False tool.run(argv=[])