Skip to content

Fake sys utils#380

Merged
brickbots merged 1 commit intobrickbots:mainfrom
WimDeMeester:fake_sys_utils
Feb 21, 2026
Merged

Fake sys utils#380
brickbots merged 1 commit intobrickbots:mainfrom
WimDeMeester:fake_sys_utils

Conversation

@WimDeMeester
Copy link
Contributor

Adds env toggle for fake sys_utils import

Adds an environment variable flag (PIFINDER_USE_FAKE_SYS_UTILS) to prefer the fake sys_utils for local development and testing.

When the flag is truthy ("1", "true", "yes") the fake module is used; otherwise the code attempts to import the real module and falls back to the fake on ImportError. This makes local dev setup deterministic and simplifies testing without altering existing fallback behavior.

Adds an environment variable flag (PIFINDER_USE_FAKE_SYS_UTILS) to prefer the fake sys_utils for local development and testing.

When the flag is truthy ("1", "true", "yes") the fake module is used; otherwise the code attempts to import the real module and falls back to the fake on ImportError. This makes local dev setup deterministic and simplifies testing without altering existing fallback behavior.
@brickbots brickbots changed the base branch from release to main February 21, 2026 19:42
@brickbots brickbots merged commit d5a4b4d into brickbots:main Feb 21, 2026
1 check passed
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