--- orphan: true --- # {py:mod}`_algopy_testing.context` ```{py:module} _algopy_testing.context ``` ```{autodoc2-docstring} _algopy_testing.context :allowtitles: ``` ## Module Contents ### Classes ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`AlgopyTestContext <_algopy_testing.context.AlgopyTestContext>` - ```{autodoc2-docstring} _algopy_testing.context.AlgopyTestContext :summary: ``` ```` ### API `````{py:class} AlgopyTestContext(*, default_sender: str | None = None, template_vars: dict[str, typing.Any] | None = None) :canonical: _algopy_testing.context.AlgopyTestContext ```{autodoc2-docstring} _algopy_testing.context.AlgopyTestContext ``` ```{rubric} Initialization ``` ```{autodoc2-docstring} _algopy_testing.context.AlgopyTestContext.__init__ ``` ````{py:property} default_sender :canonical: _algopy_testing.context.AlgopyTestContext.default_sender :type: algopy.Account ```{autodoc2-docstring} _algopy_testing.context.AlgopyTestContext.default_sender ``` ```` ````{py:property} any :canonical: _algopy_testing.context.AlgopyTestContext.any :type: _algopy_testing.value_generators.AlgopyValueGenerator ```{autodoc2-docstring} _algopy_testing.context.AlgopyTestContext.any ``` ```` ````{py:property} ledger :canonical: _algopy_testing.context.AlgopyTestContext.ledger :type: _algopy_testing.context_helpers.LedgerContext ```{autodoc2-docstring} _algopy_testing.context.AlgopyTestContext.ledger ``` ```` ````{py:property} txn :canonical: _algopy_testing.context.AlgopyTestContext.txn :type: _algopy_testing.context_helpers.TransactionContext ```{autodoc2-docstring} _algopy_testing.context.AlgopyTestContext.txn ``` ```` ````{py:method} set_template_var(name: str, value: typing.Any) -> None :canonical: _algopy_testing.context.AlgopyTestContext.set_template_var ```{autodoc2-docstring} _algopy_testing.context.AlgopyTestContext.set_template_var ``` ```` ````{py:method} execute_logicsig(lsig: algopy.LogicSig, *args: algopy.Bytes) -> bool | algopy.UInt64 :canonical: _algopy_testing.context.AlgopyTestContext.execute_logicsig ```{autodoc2-docstring} _algopy_testing.context.AlgopyTestContext.execute_logicsig ``` ```` ````{py:method} clear_transaction_context() -> None :canonical: _algopy_testing.context.AlgopyTestContext.clear_transaction_context ```{autodoc2-docstring} _algopy_testing.context.AlgopyTestContext.clear_transaction_context ``` ```` ````{py:method} reset() -> None :canonical: _algopy_testing.context.AlgopyTestContext.reset ```{autodoc2-docstring} _algopy_testing.context.AlgopyTestContext.reset ``` ```` `````