Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
34
def
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_validate_invalid_operation
Function · 0.85
test_validate_fails_metadata_empty_dict
Function · 0.85
test_transfer_asset_schema
Function · 0.85
test_create_tx_no_asset_id
Function · 0.85
test_create_tx_asset_type
Function · 0.85
test_create_tx_no_asset_data
Function · 0.85
test_no_inputs
Function · 0.85
test_create_single_input
Function · 0.85
test_create_tx_no_fulfills
Function · 0.85
test_transfer_has_inputs
Function · 0.85
test_low_amounts
Function · 0.85
test_high_amounts
Function · 0.85
Calls
1
validate
Function · 0.70
Tested by
no test coverage detected