Skip to content

Test harness and integration tests#138

Open
sastraxi wants to merge 12 commits intoTreeFallSound:pistomp-v3from
sastraxi:test/initial
Open

Test harness and integration tests#138
sastraxi wants to merge 12 commits intoTreeFallSound:pistomp-v3from
sastraxi:test/initial

Conversation

@sastraxi
Copy link
Copy Markdown
Contributor

@sastraxi sastraxi commented May 9, 2026

Building on top of some of the PIL fixes, I played around today with an integration test harness:

  • snapshot testing for UI state
  • added data_dir as a parameter to ModHandler so we can isolate tests
  • mocked requests (GET/POST), hardware (SPI/GPIO), and load_bundle (lilv)

Had to download the ttfs and put them in the dir to make the suite portable.

Branch stack

sastraxi and others added 10 commits April 18, 2026 20:10
Positional unpacks break every time a new field is added. A dataclass
allows attribute access so field additions never require mechanical fixes
across test files.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Mechanical follow-up to the NamedTuple → dataclass conversion. Every
unpack site across all test files now uses named attribute access, so
future field additions to SystemFixture require no changes here.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@@ -0,0 +1,27 @@
name: Tests
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caveat emptor: I have not tested this script.

Comment thread pistomp/lcd320x240.py
Comment thread GUIDE.md Outdated
Copy link
Copy Markdown
Collaborator

@rreichenbach rreichenbach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

sastraxi added 2 commits May 10, 2026 15:41
# Conflicts:
#	modalapi/modhandler.py
#	pistomp/hardware.py
#	pyproject.toml
#	uv.lock
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