keyword only arguments in some places

This commit is contained in:
Anthony Sottile 2020-01-12 12:19:07 -08:00
parent 34c3a1580a
commit 5779f93ec6
4 changed files with 17 additions and 20 deletions

View file

@ -8,12 +8,7 @@ from pre_commit.envcontext import UNSET
from pre_commit.envcontext import Var
def _test(**kwargs):
before = kwargs.pop('before')
patch = kwargs.pop('patch')
expected = kwargs.pop('expected')
assert not kwargs
def _test(*, before, patch, expected):
env = before.copy()
with envcontext(patch, _env=env):
assert env == expected