MCPcopy
hub / github.com/bigchaindb/bigchaindb / validate_raises

Function validate_raises

tests/validation/test_transaction_structure.py:34–36  ·  view source on GitHub ↗
(tx, exc=SchemaValidationError)

Source from the content-addressed store, hash-verified

32
33
34def validate_raises(tx, exc=SchemaValidationError):
35 with pytest.raises(exc):
36 validate(tx)
37
38
39# We should test that validation works when we expect it to

Callers 13

test_no_inputsFunction · 0.85
test_create_single_inputFunction · 0.85
test_transfer_has_inputsFunction · 0.85
test_low_amountsFunction · 0.85
test_high_amountsFunction · 0.85

Calls 1

validateFunction · 0.70

Tested by

no test coverage detected