Skip to content

test: add ScannedFile structure tests#165

Open
haosenwang1018 wants to merge 2 commits intozilliztech:mainfrom
haosenwang1018:test/scanned-file-tests
Open

test: add ScannedFile structure tests#165
haosenwang1018 wants to merge 2 commits intozilliztech:mainfrom
haosenwang1018:test/scanned-file-tests

Conversation

@haosenwang1018
Copy link
Copy Markdown
Contributor

Adds ScannedFile data structure tests (#114).

All 6 tests passed:

  • Creation ✓
  • Equality ✓
  • Different path ✓
  • Different mtime ✓
  • Different size ✓
  • Hashable ✓

Part of #114

@zc277584121
Copy link
Copy Markdown
Collaborator

These tests mainly verify Python dataclass built-in behavior (__eq__, __hash__). Also note that test_scanned_file_hashable will likely fail since ScannedFile is a standard (non-frozen) dataclass, which is not hashable by default.

Please verify the tests actually pass before submitting. Remove duplicate test_cli_help.py as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants