Skip to content

Commit

Permalink
[bugfix] prevent overwrite of pre-commit config in unit tests
Browse files Browse the repository at this point in the history
Add mock fixture to prevent overwrite of .pre-commit-config.yaml during
unit test execution.
  • Loading branch information
tdurk93 committed Dec 26, 2023
1 parent 900b81a commit 3e8aebd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/services/test_language_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ def test_that_language_support_throws_exception_when_language_config_file_cannot
def test_that_language_support_handles_invalid_language_config(
language_support_service: LanguageSupportService,
mock_language_config_service: MagicMock,
mock_open: MagicMock,
):
mock_language_config_service.get_language_config.return_value = (
LanguagePreCommitResult(
Expand Down

0 comments on commit 3e8aebd

Please sign in to comment.