Ejemplo n.º 1
0
 def test_run_nodump(self, capsys):
     main_inspector(glob.glob(os.path.join(self.datadir, 'gauss_*/')))
     out, err = capsys.readouterr()
     assert 'Dummy' in out
     assert 'gauss_dec' in out
     assert 'Skydip' in out
     assert 'gauss_skydip' in out
Ejemplo n.º 2
0
 def test_run_date_filter_before(self, logger, caplog):
     main_inspector(glob.glob(os.path.join(self.datadir, 'gauss_*/')) +
                    '--only-before 21000101-000000'.split(' '))
     assert 'Filtering out observations after MJD 88069' in caplog.text
Ejemplo n.º 3
0
 def test_run_dump_default(self):
     main_inspector(
         glob.glob(os.path.join(self.datadir, 'gauss_*/')) + ['-d'])
     assert os.path.exists('CCB_TP_Dummy_Obs0.ini')
     assert os.path.exists('KKG_TP_Dummy_Obs0.ini')
Ejemplo n.º 4
0
 def test_run_dump(self):
     main_inspector(glob.glob(os.path.join(self.datadir, 'gauss_*/')) +
                    ['-g', 'Backend', '-d'])
     assert os.path.exists('TP_Dummy_Obs0.ini')
 def test_run_date_filter_after(self, logger, caplog):
     main_inspector(glob.glob(os.path.join(self.datadir, 'gauss_*/')) +
                    '--only-after 20000101-000000'.split(' '))
     assert 'Filter out observations before MJD 51544' in caplog.text