Skip to content

Ensure that tests for command factory never read from user's config#3856

Merged
vilmibm merged 1 commit intotrunkfrom
isolate-config-in-tests
Jun 18, 2021
Merged

Ensure that tests for command factory never read from user's config#3856
vilmibm merged 1 commit intotrunkfrom
isolate-config-in-tests

Conversation

@mislav
Copy link
Contributor

@mislav mislav commented Jun 17, 2021

If these tests are going to exerise factory.New(), the config getter should always be overriden since the default config getter reads from ~/.config/gh and thus makes tests dependent on the user's environment.

Followup to #3841
Ref. #3044

If these tests are going to exerise `factory.New()`, the config getter
should always be overriden since the default config getter reads from
`~/.config/gh` and thus makes tests dependent on the user's environment.
@vilmibm vilmibm merged commit 936d6e1 into trunk Jun 18, 2021
@samcoe samcoe deleted the isolate-config-in-tests branch July 13, 2021 14:38
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.

3 participants