Skip to content

Fix test isolation by allowing config directory override via MSS_CONFIG_PATH#2997

Open
Nikita2106-05 wants to merge 5 commits intoOpen-MSS:developfrom
Nikita2106-05:develop
Open

Fix test isolation by allowing config directory override via MSS_CONFIG_PATH#2997
Nikita2106-05 wants to merge 5 commits intoOpen-MSS:developfrom
Nikita2106-05:develop

Conversation

@Nikita2106-05
Copy link

Problem

Tests sometimes depend on the user's real MSS config directory (~/mss), causing inconsistent results across environments.

Solution

This PR introduces an environment variable MSS_CONFIG_PATH that overrides the default config directory. Tests now use a temporary directory via pytest fixtures, ensuring isolation and reproducibility.

Impact

  • No change for normal users
  • Tests no longer depend on user environment
  • Improves CI reliability

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