Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
SilenZcience committed Oct 13, 2024
1 parent 05431af commit dea5030
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions cat_win/tests/src/service/test_fileattributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,22 +66,23 @@ def test_get_file_meta_data(self):
self.assertIn('ATime:', meta_data)
self.assertIn('MTime:', meta_data)
self.assertIn('CTime:', meta_data)
if on_windows_os:
self.assertIn('Archive', meta_data)
self.assertIn('System', meta_data)
self.assertIn('Hidden', meta_data)
self.assertIn('Readonly', meta_data)
self.assertIn('Indexed', meta_data)
self.assertIn('Compressed', meta_data)
self.assertIn('Encrypted', meta_data)
else:
self.assertNotIn('Archive', meta_data)
self.assertNotIn('System', meta_data)
self.assertNotIn('Hidden', meta_data)
self.assertNotIn('Readonly', meta_data)
self.assertNotIn('Indexed', meta_data)
self.assertNotIn('Compressed', meta_data)
self.assertNotIn('Encrypted', meta_data)
if '+' in meta_data:
if on_windows_os:
self.assertIn('Archive', meta_data)
self.assertIn('System', meta_data)
self.assertIn('Hidden', meta_data)
self.assertIn('Readonly', meta_data)
self.assertIn('Indexed', meta_data)
self.assertIn('Compressed', meta_data)
self.assertIn('Encrypted', meta_data)
else:
self.assertNotIn('Archive', meta_data)
self.assertNotIn('System', meta_data)
self.assertNotIn('Hidden', meta_data)
self.assertNotIn('Readonly', meta_data)
self.assertNotIn('Indexed', meta_data)
self.assertNotIn('Compressed', meta_data)
self.assertNotIn('Encrypted', meta_data)

meta_data = get_file_meta_data(
'randomFileThatHopefullyDoesNotExistWithWeirdCharsForSafety*!?\\/:<>|', '', False)
Expand Down

0 comments on commit dea5030

Please sign in to comment.