Skip to content

Commands: Set configuration file (for tests) #474

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tony opened this issue Oct 12, 2024 · 0 comments · Fixed by #475
Closed

Commands: Set configuration file (for tests) #474

tony opened this issue Oct 12, 2024 · 0 comments · Fixed by #475

Comments

@tony
Copy link
Member

tony commented Oct 12, 2024

Problem

Issue #472 requires session-scoped fixtures.

Currently, we use set_home, gitconfig, and hgconfig to monkeypatch.setenv $HOME, pointing it to a temporary directory with user-specific configuration files. This ensures all subsequent git and hg commands automatically load these configurations.

However, monkeypatch.setenv doesn't work with function-scoped fixtures.

Proposal

Environment Variables

  • GIT_CONFIG
  • HGRCPATH
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 a pull request may close this issue.

1 participant