Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
bh2smith committed Nov 15, 2022
1 parent 14326e8 commit 6298bf3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
3 changes: 0 additions & 3 deletions tests/unit/dev/test.json.csv

This file was deleted.

9 changes: 6 additions & 3 deletions tests/unit/test_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ def test_skip_empty_write(self):
file_manager.load(TEST_FILE)

def test_file_type(self):
self.assertEqual(FileType.CSV, FileType.from_str("csv"))
self.assertEqual(FileType.JSON, FileType.from_str("json"))
self.assertEqual(FileType.JSON, FileType.from_str("ndjson"))
for enum_instance in FileType:
self.assertEqual(enum_instance, FileType.from_str(str(enum_instance)))
# The above is equivalent to, but also covers new items when added.
# self.assertEqual(FileType.CSV, FileType.from_str("csv"))
# self.assertEqual(FileType.JSON, FileType.from_str("json"))
# self.assertEqual(FileType.NDJSON, FileType.from_str("ndjson"))

0 comments on commit 6298bf3

Please sign in to comment.