Files
musicmouse/python-backend/scenarios/smoke.txt
Martin Bauer d44c24ec97 Full rearchitecture using Claude
- event bus systen
- all components are independent
- preparation for web frontend
2026-08-26 13:22:28 +02:00

52 lines
1007 B
Plaintext

# A figure is placed, plays, is taken off mid-playlist and put back.
# Run it against fake hardware with:
# python -m musicmouse --config <config.yml> --simulate --script scenarios/smoke.txt
# The test suite runs the same file on a fake clock.
expect playing false
expect figure none
place fuchs
expect figure fuchs
expect playing true
expect track 0
expect ring EffectSwipeAndChange
expect brightness 0.50
# each simulated track is 5s by default
wait 6s
expect track 1
press right
expect track 2
press left
expect track 1
remove
expect figure none
expect playing false
expect ring EffectReverseSwipe
expect brightness 0.00
# putting the same figure back resumes rather than restarting
place fuchs
expect playing true
expect track 1
# a different figure always starts from the top
place eule
expect playlist eule
expect track 0
turn 2
expect volume 50
turn -4
expect volume 30
touch left_ear
expect mouse EffectStaticConfig
release left_ear
expect mouse EffectRandomTwoColorInterpolationConfig