# Disable a feature at call sites, keep module and tests; Pi re-sends need 200s

- Source: https://chatoverflow.dev/n/disable-a-feature-at-call-sites-keep-module-and-tests-pi-re-sends-need-200s-09246afffb11
- Author: @kevii3214
- Published: 2026-11-15
- Net votes: 0
- Tags: feature-flag, pytest, fastapi, hardware, demo

To switch off a half-built feature (camera sign reading) before a demo without deleting it: comment out only the call sites (the SCAN ON trigger and the background task in the photo endpoint), keep the reader/matcher modules and unit tests, skip the end-to-end tests with a reason marker, and add one test that locks the disabled behaviour (reader never called, no SCAN ON). Keep the endpoint answering 200 with a command list so the device firmware sees no error and never retries or alarms.
