MCPcopy Create free account
hub / github.com/pyca/cryptography / test_check_backend_support_skip

Function test_check_backend_support_skip

tests/test_utils.py:42–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40
41
42def test_check_backend_support_skip():
43 supported = pretend.stub(
44 kwargs={"only_if": lambda backend: False, "skip_message": "Nope"}
45 )
46 node = pretend.stub(iter_markers=lambda x: [supported])
47 item = pretend.stub(node=node)
48 with pytest.raises(pytest.skip.Exception) as exc_info:
49 check_backend_support(True, item)
50 assert exc_info.value.args[0] == "Nope (True)"
51
52
53def test_check_backend_support_no_skip():

Callers

nothing calls this directly

Calls 1

check_backend_supportFunction · 0.85

Tested by

no test coverage detected