DeepLabCut / DeepLabCut/DeepLabCut-live-GUI

Prevent tests from altering user config/preferences

Open
#127 0 comments 0 reactions 1 assignee View on GitHub

@C-Achard is already working on this.

Since Sep 9, 2026.

enhancement
Dominant language
Python
Stars
72
Forks
28
Avg merge
1d 10h
Merged PRs (30d)
2

Description

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))

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.