Skip to content

Prevent tests from altering user config/preferences #127

Open

Description

@C-Achard

TODO; prevent tests from altering user settings

Add to top conftest something like:

_settings_dir = Path(tempfile.gettempdir()) / (...)
_settings_dir.mkdir(parents=True, exist_ok=True)
QSettings.setDefaultFormat(QSettings.Format.IniFormat)  # because of Win registry
QSettings.setPath(QSettings.Format.IniFormat, QSettings.Scope.UserScope, str(_settings_dir))

Activity

  1. self-assigned this
    on Sep 9, 2026
  2. added
    enhancement
    on Sep 9, 2026
  3. added theissue type on Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions