Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commands: Set configuration file (for tests) #474

Copy link
Copy link
Closed
@tony

Description

@tony
Issue body actions

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.