mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
Minor style adjustment
This commit is contained in:
parent
a8640c759d
commit
174d3bf057
1 changed files with 3 additions and 3 deletions
|
|
@ -145,9 +145,9 @@ def img_staged(tempdir_factory):
|
|||
|
||||
def _test_img_state(path, expected_file='img1.jpg', status='A'):
|
||||
assert os.path.exists(path.img_filename)
|
||||
with io.open(path.img_filename, 'rb') as f1,\
|
||||
io.open(get_resource_path(expected_file), 'rb') as f2:
|
||||
assert f1.read() == f2.read()
|
||||
with io.open(path.img_filename, 'rb') as f1
|
||||
with io.open(get_resource_path(expected_file), 'rb') as f2:
|
||||
assert f1.read() == f2.read()
|
||||
actual_status = get_short_git_status()['img.jpg']
|
||||
assert status == actual_status
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue