mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
that's what I get for not waiting for CI
This commit is contained in:
parent
67bc05eb35
commit
cf691e85c8
1 changed files with 1 additions and 1 deletions
|
|
@ -145,7 +145,7 @@ def img_staged(tempdir_factory):
|
||||||
|
|
||||||
def _test_img_state(path, expected_file='img1.jpg', status='A'):
|
def _test_img_state(path, expected_file='img1.jpg', status='A'):
|
||||||
assert os.path.exists(path.img_filename)
|
assert os.path.exists(path.img_filename)
|
||||||
with io.open(path.img_filename, 'rb') as f1
|
with io.open(path.img_filename, 'rb') as f1:
|
||||||
with io.open(get_resource_path(expected_file), 'rb') as f2:
|
with io.open(get_resource_path(expected_file), 'rb') as f2:
|
||||||
assert f1.read() == f2.read()
|
assert f1.read() == f2.read()
|
||||||
actual_status = get_short_git_status()['img.jpg']
|
actual_status = get_short_git_status()['img.jpg']
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue