Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated unit tests for libhxl changes to hxl.input.info() #460

Merged
merged 1 commit into from
May 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
2023-04-06 Release 1.29
- /api/source-info now supports all formats (not just XLSX and XLS)
- renamed 'hashtag_hash' property from /api/source-info to 'hxl-hashtag-hash'
- from libhxl:
- /api/source-info now supports all formats (not just XLSX and XLS)
- /api/source-info now returns headers and HXL hashtags
- libhxl fixes for API-munging bug
- renamed 'hashtag_hash' property from /api/source-info to 'hxl_header_hash'

2023-03-29 Release 1.28.1
- temporarily deactivate Python-layer timeout (causing random request failures)
Expand Down
8 changes: 4 additions & 4 deletions tests/test_controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ def test_xlsx(self):
self.assertFalse(sheet["has_merged_cells"])
self.assertTrue(sheet["is_hxlated"])
self.assertEqual("56c6270ee039646436af590e874e6f67", sheet["header_hash"])
self.assertEqual("3252897e927737b2f6f423dccd07ac93", sheet["hxl_header_hash"])
self.assertEqual("ccfd7a84d6697a870e95dd64fbac640c", sheet["hxl_header_hash"])

def test_xls(self):
info = self.__get_info(self.XLS_URL)
Expand All @@ -449,7 +449,7 @@ def test_xls(self):
self.assertFalse(sheet["has_merged_cells"])
self.assertTrue(sheet["is_hxlated"])
self.assertEqual("56c6270ee039646436af590e874e6f67", sheet["header_hash"])
self.assertEqual("3252897e927737b2f6f423dccd07ac93", sheet["hxl_header_hash"])
self.assertEqual("ccfd7a84d6697a870e95dd64fbac640c", sheet["hxl_header_hash"])

def test_csv_hxl(self):
info = self.__get_info(self.CSV_HXL_URL)
Expand All @@ -464,7 +464,7 @@ def test_csv_hxl(self):
self.assertFalse(sheet["has_merged_cells"])
self.assertTrue(sheet["is_hxlated"])
self.assertEqual("56c6270ee039646436af590e874e6f67", sheet["header_hash"])
self.assertEqual("3252897e927737b2f6f423dccd07ac93", sheet["hxl_header_hash"])
self.assertEqual("ccfd7a84d6697a870e95dd64fbac640c", sheet["hxl_header_hash"])

def test_csv_nohxl(self):
info = self.__get_info(self.CSV_NOHXL_URL)
Expand Down Expand Up @@ -494,7 +494,7 @@ def test_json_hxl(self):
self.assertFalse(sheet["has_merged_cells"])
self.assertTrue(sheet["is_hxlated"])
self.assertEqual("56c6270ee039646436af590e874e6f67", sheet["header_hash"])
self.assertEqual("3252897e927737b2f6f423dccd07ac93", sheet["hxl_header_hash"])
self.assertEqual("ccfd7a84d6697a870e95dd64fbac640c", sheet["hxl_header_hash"])

def test_json_nohxl(self):
info = self.__get_info(self.JSON_NOHXL_URL)
Expand Down
Loading