def test_dump_instrument(tmpdir): tmpdir.chdir() tool = DumpInstrumentTool( infile=get_dataset_path("gamma_test_large.simtel.gz"), ) tool.run(argv=[]) print(tmpdir.listdir()) assert tmpdir.join('FlashCam.camgeom.fits.gz').exists()
def test_dump_instrument(tmpdir): sys.argv = ['dump_instrument'] tmpdir.chdir() tool = DumpInstrumentTool( infile=get_dataset_path("gamma_test_large.simtel.gz"), ) tool.run(argv=[]) print(tmpdir.listdir()) assert tmpdir.join('FlashCam.camgeom.fits.gz').exists()
def test_dump_instrument(tmpdir): from ctapipe.tools.dump_instrument import DumpInstrumentTool sys.argv = ['dump_instrument'] tmpdir.chdir() tool = DumpInstrumentTool(infile=GAMMA_TEST_LARGE, ) tool.run(argv=[]) print(tmpdir.listdir()) assert tmpdir.join('FlashCam.camgeom.fits.gz').exists()
def test_dump_instrument(tmpdir): from ctapipe.tools.dump_instrument import DumpInstrumentTool sys.argv = ['dump_instrument'] tmpdir.chdir() tool = DumpInstrumentTool( infile=GAMMA_TEST_LARGE, ) tool.run(argv=[]) print(tmpdir.listdir()) assert tmpdir.join('FlashCam.camgeom.fits.gz').exists() with pytest.raises(SystemExit): tool.run(['--help-all'])