diff --git a/tests/fixtures/generic/csv-doubleqouted-streaming.json b/tests/fixtures/generic/csv-doublequoted-streaming.json similarity index 100% rename from tests/fixtures/generic/csv-doubleqouted-streaming.json rename to tests/fixtures/generic/csv-doublequoted-streaming.json diff --git a/tests/fixtures/generic/csv-doubleqouted.csv b/tests/fixtures/generic/csv-doublequoted.csv similarity index 100% rename from tests/fixtures/generic/csv-doubleqouted.csv rename to tests/fixtures/generic/csv-doublequoted.csv diff --git a/tests/fixtures/generic/csv-doubleqouted.json b/tests/fixtures/generic/csv-doublequoted.json similarity index 100% rename from tests/fixtures/generic/csv-doubleqouted.json rename to tests/fixtures/generic/csv-doublequoted.json diff --git a/tests/test_csv.py b/tests/test_csv.py index 54df01ab..767f6940 100644 --- a/tests/test_csv.py +++ b/tests/test_csv.py @@ -36,8 +36,8 @@ class MyTests(unittest.TestCase): with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/generic/csv-insurance.csv'), 'r', encoding='utf-8') as f: generic_csv_insurance = f.read() - with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/generic/csv-doubleqouted.csv'), 'r', encoding='utf-8') as f: - generic_csv_doubleqouted = f.read() + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/generic/csv-doublequoted.csv'), 'r', encoding='utf-8') as f: + generic_csv_doublequoted = f.read() with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/generic/csv-utf-8-bom.csv'), 'r', encoding='utf-8') as f: generic_csv_utf8_bom = f.read() @@ -70,8 +70,8 @@ class MyTests(unittest.TestCase): with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/generic/csv-insurance.json'), 'r', encoding='utf-8') as f: generic_csv_insurance_json = json.loads(f.read()) - with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/generic/csv-doubleqouted.json'), 'r', encoding='utf-8') as f: - generic_csv_doubleqouted_json = json.loads(f.read()) + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/generic/csv-doublequoted.json'), 'r', encoding='utf-8') as f: + generic_csv_doublequoted_json = json.loads(f.read()) with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/generic/csv-utf-8-bom.json'), 'r', encoding='utf-8') as f: generic_csv_utf8_bom_json = json.loads(f.read()) @@ -137,11 +137,11 @@ class MyTests(unittest.TestCase): """ self.assertEqual(jc.parsers.csv.parse(self.generic_csv_insurance, quiet=True), self.generic_csv_insurance_json) - def test_csv_doubleqouted(self): + def test_csv_doublequoted(self): """ - Test 'csv-doubleqouted.csv' file + Test 'csv-doublequoted.csv' file """ - self.assertEqual(jc.parsers.csv.parse(self.generic_csv_doubleqouted, quiet=True), self.generic_csv_doubleqouted_json) + self.assertEqual(jc.parsers.csv.parse(self.generic_csv_doublequoted, quiet=True), self.generic_csv_doublequoted_json) def test_csv_utf8_bom(self): """ diff --git a/tests/test_csv_s.py b/tests/test_csv_s.py index 8fd76d92..45adb97a 100644 --- a/tests/test_csv_s.py +++ b/tests/test_csv_s.py @@ -41,8 +41,8 @@ class MyTests(unittest.TestCase): with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/generic/csv-10k-sales-records.csv'), 'r', encoding='utf-8') as f: generic_csv_10k_sales_records = f.read() - with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/generic/csv-doubleqouted.csv'), 'r', encoding='utf-8') as f: - generic_csv_doubleqouted = f.read() + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/generic/csv-doublequoted.csv'), 'r', encoding='utf-8') as f: + generic_csv_doublequoted = f.read() with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/generic/csv-utf-8-bom.csv'), 'r', encoding='utf-8') as f: generic_csv_utf8_bom = f.read() @@ -75,7 +75,7 @@ class MyTests(unittest.TestCase): with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/generic/csv-10k-sales-records-streaming.json'), 'r', encoding='utf-8') as f: generic_csv_10k_sales_records_streaming_json = json.loads(f.read()) - with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/generic/csv-doubleqouted-streaming.json'), 'r', encoding='utf-8') as f: + with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/generic/csv-doublequoted-streaming.json'), 'r', encoding='utf-8') as f: generic_csv_doublequoted_streaming_json = json.loads(f.read()) with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/generic/csv-utf-8-bom-streaming.json'), 'r', encoding='utf-8') as f: @@ -157,7 +157,7 @@ class MyTests(unittest.TestCase): """ Test 'doublequoted.csv' file """ - self.assertEqual(list(jc.parsers.csv_s.parse(self.generic_csv_doubleqouted.splitlines(), quiet=True)), self.generic_csv_doublequoted_streaming_json) + self.assertEqual(list(jc.parsers.csv_s.parse(self.generic_csv_doublequoted.splitlines(), quiet=True)), self.generic_csv_doublequoted_streaming_json) def test_csv_s_utf8_bom(self): """