Import existing LinTunes project
Snapshot of the existing codebase before working through the TASKS.md backlog. Real library data (data/) and the iTunes import fixture (itunes-test-library/) are gitignored. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
14
tests/test_round7.py
Normal file
14
tests/test_round7.py
Normal file
@ -0,0 +1,14 @@
|
||||
from lintunes.gui import drag_ghost
|
||||
|
||||
|
||||
class TestDragIcon:
|
||||
"""The cursor-following drag indicator is loaded from a customizable PNG
|
||||
that ships next to the application icon (packaging/lintunes.png)."""
|
||||
|
||||
def test_default_png_ships_next_to_app_icon(self):
|
||||
assert drag_ghost.ICON_PATH.name == "drag-icon.png"
|
||||
assert drag_ghost.ICON_PATH.exists()
|
||||
assert (drag_ghost.ICON_PATH.parent / "lintunes.png").exists()
|
||||
|
||||
def test_default_file_is_a_png(self):
|
||||
assert drag_ghost.ICON_PATH.read_bytes()[:8] == b"\x89PNG\r\n\x1a\n"
|
||||
Reference in New Issue
Block a user