aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAlex Schofield <git@ajschof.me>2025-02-12 01:30:46 +0000
committerAlex Schofield <git@ajschof.me>2025-02-12 01:35:22 +0000
commit720aa27906117682b4c6c1d7f8b1fd4d9b15bdf8 (patch)
tree43cd5a66f050e4274d5c098bec108039c0226c1d /test
parent6621bdbc405ba71a208a1967d7d7a068a5c203ab (diff)
downloadgdpr-obfuscator-720aa27906117682b4c6c1d7f8b1fd4d9b15bdf8.tar.gz
gdpr-obfuscator-720aa27906117682b4c6c1d7f8b1fd4d9b15bdf8.zip
reformat tests for csv_reader
Diffstat (limited to 'test')
-rw-r--r--test/test_csv_reader.py29
1 files changed, 2 insertions, 27 deletions
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
git.ajschof.me — hosted by ajschofield — powered by cgit