agent0.test_fixtures
Test fixtures for agent0.
Submodules
Functions
|
Local chain connected to a local database hosted in docker. |
|
Local chain connected to a local database hosted in docker. |
|
Local chain connected to a local database hosted in docker. |
Local hyperdrive pool test fixture. |
|
|
Local hyperdrive pool test fixture. |
|
Local hyperdrive pool test fixture. |
Fixture representing a hyperdrive read interface to a deployed hyperdrive pool. |
|
Fixture representing a hyperdrive interface to a deployed hyperdrive pool. |
Package Contents
- agent0.test_fixtures.chain_fixture() Iterator[agent0.core.hyperdrive.interactive.LocalChain]
Local chain connected to a local database hosted in docker. This fixture launches a chain from scratch in a function scope.
- Yields:
LocalChain – The local chain instance.
- agent0.test_fixtures.fast_chain_fixture(init_chain: agent0.core.hyperdrive.interactive.LocalChain) Iterator[agent0.core.hyperdrive.interactive.LocalChain]
Local chain connected to a local database hosted in docker. This fixture uses snapshot on an existing chain in a function scope.
Note
This chain is booted from an existing snapshot for speed. If you save a new snapshot the first will be overwritten.
- Parameters:
init_chain (LocalChain) – Session scoped chain fixture.
- Yields:
LocalChain – Local chain instance.
- agent0.test_fixtures.init_chain() Iterator[agent0.core.hyperdrive.interactive.LocalChain]
Local chain connected to a local database hosted in docker. This fixture launches a chain from scratch in a session scope.
- Yields:
LocalChain – local chain instance.
- agent0.test_fixtures.fast_hyperdrive_fixture(init_hyperdrive: agent0.core.hyperdrive.interactive.LocalHyperdrive) Iterator[agent0.core.hyperdrive.interactive.LocalHyperdrive]
Local hyperdrive pool test fixture. This fixture uses snapshot on an existing chain in a function scope.
Note
This pool is booted from an existing snapshot for speed. If you save a new snapshot the first will be overwritten.
- Parameters:
init_hyperdrive (LocalHyperdrive) – Session scoped hyperdrive fixture.
- Yields:
LocalHyperdrive – The deployed hyperdrive object.
- agent0.test_fixtures.hyperdrive_fixture(chain_fixture: agent0.core.hyperdrive.interactive.LocalChain) agent0.core.hyperdrive.interactive.LocalHyperdrive
Local hyperdrive pool test fixture. This fixture launches a chain from scratch in a function scope.
- Parameters:
chain_fixture (LocalChain) – Function scoped chain fixture.
- Returns:
The deployed hyperdrive object.
- Return type:
- agent0.test_fixtures.init_hyperdrive() Iterator[agent0.core.hyperdrive.interactive.LocalHyperdrive]
Local hyperdrive pool test fixture. This fixture launches a hyperdrive pool from scratch in a session scope.
- Yields:
LocalHyperdrive – The deployed hyperdrive object.
- agent0.test_fixtures.hyperdrive_read_interface_fixture(fast_hyperdrive_fixture: agent0.core.hyperdrive.interactive.LocalHyperdrive) agent0.ethpy.hyperdrive.interface.HyperdriveReadInterface
Fixture representing a hyperdrive read interface to a deployed hyperdrive pool.
- Parameters:
fast_hyperdrive_fixture (LocalHyperdrive) – Fixture representing the deployed hyperdrive pool.
- Returns:
The interface to access the deployed hyperdrive pool.
- Return type:
- agent0.test_fixtures.hyperdrive_read_write_interface_fixture(fast_hyperdrive_fixture: agent0.core.hyperdrive.interactive.LocalHyperdrive) agent0.ethpy.hyperdrive.interface.HyperdriveReadWriteInterface
Fixture representing a hyperdrive interface to a deployed hyperdrive pool.
- Parameters:
fast_hyperdrive_fixture (LocalHyperdrive) – Fixture representing the deployed hyperdrive pool.
- Returns:
The interface to access and write to the deployed hyperdrive pool.
- Return type: