aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Schofield <git@ajschof.me>2025-02-12 01:33:44 +0000
committerAlex Schofield <git@ajschof.me>2025-02-12 01:35:36 +0000
commitecadaaf8d0d0f22b3ff24fa5fd99845da262d2af (patch)
tree86099059c591711748858b04512041ad7077cef7
parent720aa27906117682b4c6c1d7f8b1fd4d9b15bdf8 (diff)
downloadgdpr-obfuscator-ecadaaf8d0d0f22b3ff24fa5fd99845da262d2af.tar.gz
gdpr-obfuscator-ecadaaf8d0d0f22b3ff24fa5fd99845da262d2af.zip
add test for non-csv file output for csv_reader
-rw-r--r--test/test_csv_reader.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_csv_reader.py b/test/test_csv_reader.py
index 3fb2fa8..d245d7c 100644
--- a/test/test_csv_reader.py
+++ b/test/test_csv_reader.py
@@ -40,4 +40,10 @@ def test_csv_with_quoted_fields_should_run_as_expected():
{"student_id": "1234", "name": "Student 1", "course": "Course 1"},
{"student_id": "5678", "name": "Student 2", "course": "Course 2"},
]
+ assert result == expected
+
+def test_non_csv_file_should_return_no_content():
+ content = ""
+ result = csv_reader(content)
+ expected = []
assert result == expected \ No newline at end of file
git.ajschof.me — hosted by ajschofield — powered by cgit