mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-19 09:04:41 +04:00
just use normal dicts in tests
This commit is contained in:
parent
2125a4cf47
commit
e4cf5f321b
7 changed files with 114 additions and 157 deletions
|
|
@ -3,7 +3,6 @@ from __future__ import unicode_literals
|
|||
import os.path
|
||||
import pipes
|
||||
import shutil
|
||||
from collections import OrderedDict
|
||||
|
||||
import pytest
|
||||
|
||||
|
|
@ -290,7 +289,7 @@ def test_hook_disppearing_repo_raises(hook_disappearing_repo, store):
|
|||
config = make_config_from_repo(
|
||||
hook_disappearing_repo.path,
|
||||
rev=hook_disappearing_repo.original_rev,
|
||||
hooks=[OrderedDict((('id', 'foo'),))],
|
||||
hooks=[{'id': 'foo'}],
|
||||
)
|
||||
with pytest.raises(RepositoryCannotBeUpdatedError):
|
||||
_update_repo(config, store, tags_only=False)
|
||||
|
|
@ -302,7 +301,7 @@ def test_autoupdate_hook_disappearing_repo(
|
|||
config = make_config_from_repo(
|
||||
hook_disappearing_repo.path,
|
||||
rev=hook_disappearing_repo.original_rev,
|
||||
hooks=[OrderedDict((('id', 'foo'),))],
|
||||
hooks=[{'id': 'foo'}],
|
||||
check=False,
|
||||
)
|
||||
write_config('.', config)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue