From 689e43b4ba5e88faccbef9b0f7f3e45a4d519744 Mon Sep 17 00:00:00 2001 From: Alex Schofield Date: Tue, 11 Feb 2025 13:23:19 +0000 Subject: add initial tests for csv_reader --- test/test_csv_reader.py | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 test/test_csv_reader.py (limited to 'test/test_csv_reader.py') diff --git a/test/test_csv_reader.py b/test/test_csv_reader.py new file mode 100644 index 0000000..f16a229 --- /dev/null +++ b/test/test_csv_reader.py @@ -0,0 +1,35 @@ +# csv_reader.py - tests +# Author: Alex Schofield + +from csv_reader import csv_reader + +def test_empty_csv_should_return_no_content(): + pass + +def test_csv_with_header_only_should_return_no_content(): + pass + +def test_csv_with_valid_data_should_return_obfuscated_content(): + pass + +def test_csv_with_quoted_fields_should_be_sanitised(): + pass + +def test_non_csv_file_should_return_no_content(): + pass + +def test_csv_file_with_embedded_newline_should_be_sanitised(): + pass + +def test_csv_file_with_embedded_comma_should_be_sanitised(): + pass + +def test_csv_file_with_embedded_quote_should_be_sanitised(): + pass + +def test_csv_file_with_null_values_should_be_transformed_to_empty_string(): + pass + +def test_csv_file_with_non_string_data_should_be_transformed_to_empty_string(): + pass + -- cgit v1.2.3