MCPcopy
hub / github.com/django/django / fail_set_multi

Method fail_set_multi

tests/cache/tests.py:1691–1692  ·  view source on GitHub ↗
(mapping, *args, **kwargs)

Source from the content-addressed store, hash-verified

1689
1690 def test_set_many_returns_failing_keys(self):
1691 def fail_set_multi(mapping, *args, **kwargs):
1692 return mapping.keys()
1693
1694 with mock.patch.object(cache._class, "set_multi", side_effect=fail_set_multi):
1695 failing_keys = cache.set_many({"key": "value"})

Callers

nothing calls this directly

Calls 1

keysMethod · 0.45

Tested by

no test coverage detected