def test_should_run_true_if_all_values_missing(self): settings = default_settings() job = mock_emop_job(settings) job.postproc_result.multicol_exists = False job.postproc_result.skew_idx_exists = False multi_column_skew = MultiColumnSkew(job) self.assertTrue(multi_column_skew.should_run())
def test_should_run_false(self): settings = default_settings() job = mock_emop_job(settings) job.postproc_result.multicol_exists = True job.postproc_result.skew_idx_exists = True multi_column_skew = MultiColumnSkew(job) self.assertFalse(multi_column_skew.should_run())