Skip to content

Commit

Permalink
remove test_check_alignment_case_insensitive_columns
Browse files Browse the repository at this point in the history
  • Loading branch information
zoeduan committed Jul 27, 2024
1 parent e01a1e6 commit 36f2a08
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions tests/test_buddycheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,20 +144,5 @@ def test_check_alignment_empty_checksum_df(self):
self.assertIsNotNone(missing_imgs)
self.assertEqual(missing_imgs.shape[0], 3)

def test_check_alignment_case_insensitive_columns(self):
source_df = pd.DataFrame({
'FILENAME': ['image1.jpg', 'image2.jpg', 'image3.jpg'],
'CHECKSUM': ['abc123', 'def456', 'ghi789']
})
checksum_df = pd.DataFrame({
'FILENAME': ['image1.jpg', 'image2.jpg', 'image3.jpg'],
'MD5': ['abc123', 'def456', 'ghi789']
})
source_df.columns = source_df.columns.str.lower()
checksum_df.columns = checksum_df.columns.str.lower()
merged_df = self.buddy_check_filename.merge_on_filename_checksum(source_df, checksum_df, 'filename', 'checksum')
missing_imgs = self.buddy_check_filename.check_alignment(source_df, merged_df)
self.assertIsNone(missing_imgs)

if __name__ == '__main__':
unittest.main()

0 comments on commit 36f2a08

Please sign in to comment.