Implement types filtering

This commit is contained in:
Anthony Sottile 2017-07-01 20:06:32 -07:00
parent a68c1ab0d2
commit a58d99ac40
4 changed files with 36 additions and 0 deletions

View file

@ -153,6 +153,19 @@ def test_hook_that_modifies_but_returns_zero(
)
def test_types_hook_repository(
cap_out, tempdir_factory, mock_out_store_directory,
):
git_path = make_consuming_repo(tempdir_factory, 'types_repo')
with cwd(git_path):
stage_a_file('bar.py')
stage_a_file('bar.notpy')
ret, printed = _do_run(cap_out, git_path, _get_opts())
assert ret == 1
assert b'bar.py' in printed
assert b'bar.notpy' not in printed
def test_show_diff_on_failure(
capfd, cap_out, tempdir_factory, mock_out_store_directory,
):