def test_check_for_delimiter(self): comparable = Compare() comparable.file_name = os.path.join(self.MOCK_DATA_DIR, "simple_csv_file.csv") comparable.encoding = "utf-8" comparable.delimiter = "," assert input_validator.check_for_delimiter(comparable) is None
def test_check_for_non_comma_delimiter(self): comparable = Compare() comparable.file_name = os.path.join(self.MOCK_DATA_DIR, "none_csv_file.txt") comparable.encoding = "utf-8" comparable.delimiter = "," with pytest.raises(AppErrorHandler): input_validator.check_for_delimiter(comparable)