Skip to content

Add tests for the installer-name matching helpers in junk.py #29

Description

@Vortrix5

Summary

_installer_app_hint() and _is_installed_app_installer() in src/sifty/core/junk.py power the "only flag installers for apps you actually have installed" logic for the downloads-installers category, and they have no direct tests. Add unit tests for the suffix stripping (e.g. Discord-Setup-1.2.3.exe becomes discord) and the installed-name matching (substring both directions, plus the under-3-char guard).

Where

tests/test_junk.py, calling the pure helpers directly. No fixtures needed.

Acceptance criteria

  • Tests cover a few representative installer names and the short-hint guard
  • pytest green

Tip

These are pure functions, so this is a good first test contribution (like #20).

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions