aea.test_
tools.generic
This module contains generic tools for AEA end-to-end testing.
write_
envelope_
to_
file
Write an envelope to a file.
Arguments:
envelope
: Envelope.file_path
: the file path
read_
envelope_
from_
file
Read an envelope from a file.
Arguments:
file_path
: the file path.
Returns:
envelope
nested_
set_
config
Set an AEA config with nested values.
Run from agent's directory.
Allowed dotted_path: 'agent.an_attribute_name' 'protocols.my_protocol.an_attribute_name' 'connections.my_connection.an_attribute_name' 'contracts.my_contract.an_attribute_name' 'skills.my_skill.an_attribute_name' 'vendor.author.[protocols|connections|skills].package_name.attribute_name
Arguments:
dotted_path
: dotted path to a setting.value
: a value to assign. Must be of yaml serializable type.author
: the author name, used to parse the dotted path.