diff options
| author | deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> | 2025-02-17 16:47:59 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-17 16:47:59 +0000 |
| commit | ea70f4889120bc01d2a5416b99e3faba9c28fe9d (patch) | |
| tree | 3f4c74045d582eb9352a89247e53d7e704c991ea /test/test_csv_reader.py | |
| parent | 00917b8ecf67de9e955479be555d74fcc8257020 (diff) | |
| download | gdpr-obfuscator-ea70f4889120bc01d2a5416b99e3faba9c28fe9d.tar.gz gdpr-obfuscator-ea70f4889120bc01d2a5416b99e3faba9c28fe9d.zip | |
style: format code with Autopep8, Black and Ruff Formatter
This commit fixes the style issues introduced in 00917b8 according to the output
from Autopep8, Black and Ruff Formatter.
Details: None
Diffstat (limited to 'test/test_csv_reader.py')
| -rw-r--r-- | test/test_csv_reader.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test_csv_reader.py b/test/test_csv_reader.py index 1b3d071..af13cff 100644 --- a/test/test_csv_reader.py +++ b/test/test_csv_reader.py @@ -7,22 +7,30 @@ reader = CSVReader() # Check if the function can read a CSV string with no content and return # an empty list + + def test_empty_csv_should_return_no_content(): content = "" result = reader.read_string(content) expected = [] assert result == expected + # Check if the function can read a CSV string with only a header and return # an empty list + + def test_csv_with_header_only_should_return_no_content(): content = "student_id,name,course\n" result = reader.read_string(content) expected = [] assert result == expected + # Check if the function can read a CSV string with valid data and return # a list of dictionaries + + def test_csv_with_valid_data(): content = ( "student_id,name,course\n" @@ -36,8 +44,11 @@ def test_csv_with_valid_data(): ] assert result == expected + # Check if the function can read a CSV string with quoted fields and return # a list of dictionaries with the quoted fields intact + + def test_csv_with_quoted_fields_should_run_as_expected(): content = ( "student_id,name,course\n" |
