def test_validator_directory_does_not_exist(self): rtn_code = run_validation(metadata=generate_test_metadata(), missing_table_ignore=False, missing_field_ignore=False, dir_name=get_resource_dir('no_such_dir'), verbose=False) self.assertEqual(1, rtn_code)
def test_validator_with_extra_field(self): rtn_code = run_validation(metadata=generate_test_metadata(), missing_table_ignore=False, missing_field_ignore=False, dir_name=get_resource_dir('extra_fields'), verbose=False) self.assertEqual(1, rtn_code)
def test_validator_with_missig_csv_ignore_table(self): rtn_code = run_validation(metadata=generate_test_metadata(), missing_table_ignore=True, missing_field_ignore=False, dir_name=get_resource_dir('missing_csv'), verbose=False) self.assertEqual(0, rtn_code)