Registry Mirror
Skip to content

Conversation

@Solarboaters

Copy link
Copy Markdown

Literal percent signs in user settings raise ConfigParser interpolation errors or substitute other values. Disable interpolation so configuration values round-trip unchanged; tests cover ordinary percentages and interpolation-like text.

Validation

The included regression test reproduces the failure against the original code and passes with this change (Ran 1 test in 0.002s). Run it with:

python3 -m unittest discover -s tests -p test_literal_percent_settings.py -v

The six affected OpenPlotter apps were also checked with the batch fixes combined: all 18 regression tests passed, Python source syntax checks passed, and the diffs pass whitespace checks. Tests use temporary configuration files and mocked hardware/service dependencies; no live services, GPIO, I2C, CAN or installed OpenPlotter settings were changed. Raspberry Pi hardware, live GUI and Debian package installation were not tested.

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.

1 participant