Source code for dbsp_drp.tests.test_quicklook

import os

import pytest

from dbsp_drp import quicklook

[docs]def quicklook_tester(wdir, path, fname): os.chdir(wdir) args = quicklook.parse([os.path.join(path, 'ql_test_data', fname), '--no-show']) quicklook.main(args)
[docs]@pytest.fixture(scope='session') def working_dir(tmp_path_factory): return tmp_path_factory.mktemp('ql_out')
[docs]def test_quicklook_red_calib(files_path, working_dir): quicklook_tester(working_dir, files_path, 'red')
[docs]def test_quicklook_blue_calib(files_path, working_dir): quicklook_tester(working_dir, files_path, 'blue')
[docs]def test_quicklook_red(files_path, working_dir): quicklook_tester(working_dir, files_path, 'red0052.fits')
[docs]def test_quicklook_blue(files_path, working_dir): quicklook_tester(working_dir, files_path, 'blue0050.fits')