API Reference

An overview of the algorand-python-testing’s algopy_testing module - covering the main classes and functions.

Hint

Spotted a typo in documentation? This project is open source, please submit an issue or a PR on GitHub.

Warning

Note, assume _algopy_testing to refer to algopy_testing namespace in the auto-generated class documentation above. To be patched in near future.

Contexts

algopy_testing.AlgopyTestContext

Manages the testing context for Algorand Python SDK (algopy) applications.

algopy_testing.LedgerContext

Context for managing the ledger state.

algopy_testing.TransactionContext

Context for managing transaction groups and active transactions.

Value Generators

algopy_testing.AVMValueGenerator

Factory for generating test data for AVM abstractions (uint64, bytes, string, accounts, assets and applications).

algopy_testing.ARC4ValueGenerator

Factory for generating ARC4-compliant test data.

algopy_testing.TxnValueGenerator

Factory for generating test data for transactions.

Inner transaction loaders

algopy_testing.ITxnGroupLoader

A helper class for handling access to groups of inner transactions in test context.

algopy_testing.ITxnLoader

A helper class for handling access to individual inner transactions in test context.

Utils

algopy_testing.algopy_testing_context

Context manager for the AlgopyTestContext.

algopy_testing.arc4_prefix

Return the value with the ARC4 prefix prepended.