Incoroporate PR feedback

* Make config_file a required argument to Runner
* Update main.py
* Update tests to make them all green

New test to test alternate config functionality coming in next commit
This commit is contained in:
Jacob Scott 2016-12-02 13:53:59 -08:00
parent f1c00eefe4
commit f205e6d170
7 changed files with 63 additions and 59 deletions

View file

@ -9,6 +9,7 @@ import os.path
import mock
import pytest
import pre_commit.constants as C
from pre_commit import five
from pre_commit import output
from pre_commit.logging_handler import add_logging_handler
@ -136,7 +137,7 @@ def cmd_runner(tempdir_factory):
@pytest.yield_fixture
def runner_with_mocked_store(mock_out_store_directory):
yield Runner('/')
yield Runner('/', C.CONFIG_FILE)
@pytest.yield_fixture