From 720aa27906117682b4c6c1d7f8b1fd4d9b15bdf8 Mon Sep 17 00:00:00 2001 From: Alex Schofield Date: Wed, 12 Feb 2025 01:30:46 +0000 Subject: reformat tests for csv_reader --- test/test_csv_reader.py | 29 ++--------------------------- 1 file changed, 2 insertions(+), 27 deletions(-) (limited to 'test') diff --git a/test/test_csv_reader.py b/test/test_csv_reader.py index d96a2d1..3fb2fa8 100644 --- a/test/test_csv_reader.py +++ b/test/test_csv_reader.py @@ -29,7 +29,7 @@ def test_csv_with_valid_data(): ] assert result == expected -def test_csv_with_quoted_fields_should_be_sanitised(): +def test_csv_with_quoted_fields_should_run_as_expected(): content = ( 'student_id,name,course\n' '1234,"Student 1","Course 1"\n' @@ -40,29 +40,4 @@ def test_csv_with_quoted_fields_should_be_sanitised(): {"student_id": "1234", "name": "Student 1", "course": "Course 1"}, {"student_id": "5678", "name": "Student 2", "course": "Course 2"}, ] - assert result == expected - -@pytest.mark.skip(reason="Not implemented yet") -def test_non_csv_file_should_return_no_content(): - pass - -@pytest.mark.skip(reason="Not implemented yet") -def test_csv_file_with_embedded_newline_should_be_sanitised(): - pass - -@pytest.mark.skip(reason="Not implemented yet") -def test_csv_file_with_embedded_comma_should_be_sanitised(): - pass - -@pytest.mark.skip(reason="Not implemented yet") -def test_csv_file_with_embedded_quote_should_be_sanitised(): - pass - -@pytest.mark.skip(reason="Not implemented yet") -def test_csv_file_with_null_values_should_be_transformed_to_empty_string(): - pass - -@pytest.mark.skip(reason="Not implemented yet") -def test_csv_file_with_non_string_data_should_be_transformed_to_empty_string(): - pass - + assert result == expected \ No newline at end of file -- cgit v1.2.3