File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1111
1212from pre_commit import five
1313from pre_commit import output
14+ from pre_commit .logging_handler import add_logging_handler
1415from pre_commit .prefixed_command_runner import PrefixedCommandRunner
1516from pre_commit .runner import Runner
1617from pre_commit .store import Store
@@ -90,7 +91,7 @@ def in_conflicting_submodule(tempdir_factory):
9091 yield
9192
9293
93- @pytest .yield_fixture (scope = 'session' , autouse = True )
94+ @pytest .yield_fixture (autouse = True , scope = 'session' )
9495def dont_write_to_home_directory ():
9596 """pre_commit.store.Store will by default write to the home directory
9697 We'll mock out `Store.get_default_directory` to raise invariantly so we
@@ -107,6 +108,11 @@ class YouForgotToExplicitlyChooseAStoreDirectory(AssertionError):
107108 yield
108109
109110
111+ @pytest .fixture (autouse = True , scope = 'session' )
112+ def configure_logging ():
113+ add_logging_handler (use_color = False )
114+
115+
110116@pytest .yield_fixture
111117def mock_out_store_directory (tempdir_factory ):
112118 tmpdir = tempdir_factory .get ()
You can’t perform that action at this time.
0 commit comments