def test_seperator(file_with_seperator):
    """
  Test Producer class with custom CSV seperator.
  """
    p = Producer()
    task_id = p.s(file_with_seperator, sep='|').apply_async()
    assert isinstance(task_id, celery.result.EagerResult)
def test_successful_execution(custom_file_format):
    """
  Test valid CSV file with all three parameters.
  """
    p = Producer()
    sep = '|'
    header = 1
    column_map = {'email': 0, 'name': 1}
    task_id = p.s(custom_file_format,
                  header_rows=header,
                  column_map=column_map,
                  sep='|').apply_async()
    assert isinstance(task_id, celery.result.EagerResult)