test_overwriting_putall_withdup -> test_forceupdate_withdup

This commit is contained in:
jab 2016-06-29 22:04:16 -04:00
parent 85e84e8f0e
commit 476bdc77b9
1 changed files with 3 additions and 4 deletions

View File

@ -1,4 +1,4 @@
from bidict import bidict, orderedbidict, ValueDuplicationError, OVERWRITE
from bidict import bidict, orderedbidict, ValueDuplicationError
import pytest
@ -68,8 +68,7 @@ def test_update_withdup(benchmark):
benchmark(runner)
def test_overwriting_putall_withdup(benchmark):
def test_forceupdate_withdup(benchmark):
elements_ = bidict(elements)
benchmark(elements_.putall, update_withdupval,
on_dup_key=OVERWRITE, on_dup_val=OVERWRITE, on_dup_kv=OVERWRITE)
benchmark(elements_.forceupdate, update_withdupval)
assert elements_.inv['hydrogen'] == 'key_with_dup_val'