diff --git a/test/test_variables.py b/test/test_variables.py index 1c7c92df77483b400b509c92e4c33f903d6c5f5f..9224669c7662baaab83f2adcdee60aef16865e55 100644 --- a/test/test_variables.py +++ b/test/test_variables.py @@ -5,159 +5,215 @@ import unittest class TestAbbTempOutlierFlag(unittest.TestCase): def test_abb_temp_outlier_flag_pass(self): + pass def test_abb_temp_outlier_flag_fail(self): + pass class TestAbbThermistorFlag(unittest.TestCase): def test_abb_thermistor_flag_pass(self): + pass +# good_data = pd.DataFrame({ +# }) +# actual = state_checks.abb_thermistor_flag def test_abb_thermistor_flag_fail(self): + pass class TestAirInterferometerOutlierFlag(unittest.TestCase): def test_air_interferometer_outlier_flag_pass(self): + pass def test_air_interferometer_outlier_flag_fail(self): + pass class TestBstTempOutlierFlag(unittest.TestCase): def test_bst_temp_outlier_flag_pass(self): + pass def test_bst_temp_outlier_flag_fail(self): + pass class TestBstTempOutlierFlag(unittest.TestCase): def test_bst_temp_outlier_flag_pass(self): + pass def test_bst_temp_outlier_flag_fail(self): + pass class TestHatchFlag(unittest.TestCase): def test_hatch_flag_pass(self): + pass def test_hatch_flag_fail(self): + pass class TestHbbCovarianceFlag(unittest.TestCase): def setUp(self): self.parameters = {} - self.good_data = frame = pd.DataFrame({ - HBBbottomTemp: np.ones(10), - HBBtopTemp: np.ones(10), - HBBapexTemp: np.ones(10)}) def test_hbb_covariance_flag_pass(self): - actual = thermal_checks.hbb_covariance_flag.func(self.good_data, self.parameters).tolist() + good_data = pd.DataFrame({ + 'HBBbottomTemp': np.ones(10), + 'HBBtopTemp': np.ones(10), + 'HBBapexTemp': np.ones(10)}) + actual = thermal_checks.hbb_covariance_flag.func(good_data, self.parameters).tolist() expected = np.zeros(10).tolist() self.assertListEqual(actual, expected) def test_hbb_covariance_flag_fail(self): - self.bad_data = pd.DataFrame({ - HBBbottomTemp: np.arange(10), - HBBtopTemp: np.arange(10) * 2, - HBBapexTemp: np.arange(10) * 3}) - actual = thermal_checks.hbb_covariance_flag.func(self.bad_data, self.parameters).tolist() + bad_data = pd.DataFrame({ + 'HBBbottomTemp': np.arange(10), + 'HBBtopTemp': np.arange(10) * 2, + 'HBBapexTemp': np.arange(10) * 3}) + actual = thermal_checks.hbb_covariance_flag.func(bad_data, self.parameters).tolist() expected = np.ones(10).tolist() self.assertListEqual(actual, expected) class TestHbbStableFlag(unittest.TestCase): def test_hbb_stable_flag_pass(self): + pass def test_hbb_stable_flag_fail(self): + pass class TestHbbStdDevFlag(unittest.TestCase): def test_hbb_std_dev_flag_pass(self): + pass def test_hbb_std_dev_flag_fail(self): + pass class TestHbbTempOutlierFlag(unittest.TestCase): def test_hbb_temp_outlier_flag_pass(self): + pass def test_hbb_temp_outlier_flag_fail(self): + pass class TestHbbThermistorFlag(unittest.TestCase): def test_hbb_thermistor_flag_pass(self): + pass def test_hbb_thermistor_flag_fail(self): + pass class TestImaginaryRadianceFlag(unittest.TestCase): def test_imaginary_radiance_flag_pass(self): + pass def test_imaginary_radiance_flag_fail(self): + pass class TestLwResponsivityFlag(unittest.TestCase): def test_lw_responsivity_flag_pass(self): + pass def test_lw_responsivity_flag_fail(self): + pass class TestMissingDataFlag(unittest.TestCase): def test_missing_data_flag_pass(self): + pass def test_missing_data_flag_fail(self): + pass class TestSafingFlag(unittest.TestCase): def test_safing_flag_pass(self): + pass def test_safing_flag_fail(self): + pass class TestSkyBrightnessTempSpectralAveragesCh1Flag(unittest.TestCase): def test_sky_brightness_temp_spectral_averages_ch1_flag_pass(self): + pass def test_sky_brightness_temp_spectral_averages_ch1_flag_fail(self): + pass class TestSkyBrightnessTempSpectralAveragesCh2Flag(unittest.TestCase): def test_sky_brightness_temp_spectral_averages_ch2_flag_pass(self): + pass def test_sky_brightness_temp_spectral_averages_ch2_flag_fail(self): + pass class TestSwResponsivityFlag(unittest.TestCase): def test_sw_responsivity_flag_pass(self): + pass def test_sw_responsivity_flag_fail(self): + pass class TestCrossCorrelationCheck(unittest.TestCase): def test_cross_correlation_check_pass(self): + pass def test_cross_correlation_check_fail(self): + pass class TestDetectorCheck(unittest.TestCase): def test_detector_check_pass(self): + pass def test_detector_check_fail(self): + pass class TestDetectorTempCheck(unittest.TestCase): def test_detector_temp_check_pass(self): + pass def test_detector_temp_check_fail(self): + pass class TestHbbLwNenCheck(unittest.TestCase): + pass def test_hbb_lw_nen_check_pass(self): + pass def test_hbb_lw_nen_check_fail(self): + pass class TestHysteresisCheck(unittest.TestCase): def test_hysteresis_check_pass(self): + pass def test_hysteresis_check_fail(self): + pass class TestSceTempDeviationCheck(unittest.TestCase): def test_sce_temp_deviation_check_pass(self): + pass def test_sce_temp_deviation_check_fail(self): + pass class TestSpikeCheck(unittest.TestCase): def test_spike_check_pass(self): + pass def test_spike_check_fail(self): + pass class TestAggregateQcCheck(unittest.TestCase): def test_aggregate_qc_check_pass(self): + pass def test_aggregate_qc_check_fail(self): + pass class TestAggregateQcFlag(unittest.TestCase): def test_aggregate_qc_flag_pass(self): + pass def test_aggregate_qc_flag_fail(self): + pass def suite():