aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-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