mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-17 00:07:37 +02:00
add test for no data
This commit is contained in:
@ -65,6 +65,12 @@ 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:
|
with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/generic/csv-insurance.json'), 'r', encoding='utf-8') as f:
|
||||||
self.generic_csv_insurance_json = json.loads(f.read())
|
self.generic_csv_insurance_json = json.loads(f.read())
|
||||||
|
|
||||||
|
def test_csv_nodata(self):
|
||||||
|
"""
|
||||||
|
Test with no data
|
||||||
|
"""
|
||||||
|
self.assertEqual(jc.parsers.csv.parse('', quiet=True), [])
|
||||||
|
|
||||||
def test_csv_biostats(self):
|
def test_csv_biostats(self):
|
||||||
"""
|
"""
|
||||||
Test 'biostats.csv' file
|
Test 'biostats.csv' file
|
||||||
|
Reference in New Issue
Block a user