Skip to content

Commit c7fbe2c

Browse files
neilcampbelldaniel-makerx
authored andcommitted
chore: split tests to keep polytest happy
1 parent c7b222d commit c7fbe2c

27 files changed

+1525
-1437
lines changed

.github/workflows/build-python.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ jobs:
2929
- name: Setup Polytest
3030
uses: algorandfoundation/algokit-polytest/.github/actions/setup-polytest@main
3131

32+
- name: Generate all polytest files
33+
shell: bash
34+
run: uv run poe polytest-generate-all
35+
3236
- name: Start algod mock server
3337
uses: algorandfoundation/algokit-polytest/.github/actions/run-mock-server@main
3438
with:

tests/modules/transact/multisig/__init__.py

Whitespace-only changes.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import pytest
2+
3+
from tests.modules.transact._helpers import iter_app_call_test_data
4+
from tests.modules.transact.conftest import TestDataLookup
5+
from tests.modules.transact.transaction_asserts import assert_multisig_example
6+
7+
8+
@pytest.mark.parametrize(("label", "key"), list(iter_app_call_test_data()))
9+
def test_multisig_example(label: str, key: str, test_data_lookup: TestDataLookup) -> None:
10+
"""A human-readable example of forming a transaction and signing it with a multisignature sig"""
11+
assert_multisig_example(label, test_data_lookup(key))
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import pytest
2+
3+
from tests.modules.transact._helpers import iter_asset_config_test_data
4+
from tests.modules.transact.conftest import TestDataLookup
5+
from tests.modules.transact.transaction_asserts import assert_multisig_example
6+
7+
8+
@pytest.mark.parametrize(("label", "key"), list(iter_asset_config_test_data()))
9+
def test_multisig_example(label: str, key: str, test_data_lookup: TestDataLookup) -> None:
10+
"""A human-readable example of forming a transaction and signing it with a multisignature sig"""
11+
assert_multisig_example(label, test_data_lookup(key))
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import pytest
2+
3+
from tests.modules.transact._helpers import iter_asset_transfer_test_data
4+
from tests.modules.transact.conftest import TestDataLookup
5+
from tests.modules.transact.transaction_asserts import assert_multisig_example
6+
7+
8+
@pytest.mark.parametrize(("label", "key"), list(iter_asset_transfer_test_data()))
9+
def test_multisig_example(label: str, key: str, test_data_lookup: TestDataLookup) -> None:
10+
"""A human-readable example of forming a transaction and signing it with a multisignature sig"""
11+
assert_multisig_example(label, test_data_lookup(key))
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import pytest
2+
3+
from tests.modules.transact._helpers import iter_heartbeat_test_data
4+
from tests.modules.transact.conftest import TestDataLookup
5+
from tests.modules.transact.transaction_asserts import assert_multisig_example
6+
7+
8+
@pytest.mark.parametrize(("label", "key"), iter_heartbeat_test_data())
9+
def test_multisig_example(label: str, key: str, test_data_lookup: TestDataLookup) -> None:
10+
"""A human-readable example of forming a transaction and signing it with a multisignature sig"""
11+
assert_multisig_example(label, test_data_lookup(key))
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import pytest
2+
3+
from tests.modules.transact._helpers import iter_key_registration_test_data
4+
from tests.modules.transact.conftest import TestDataLookup
5+
from tests.modules.transact.transaction_asserts import assert_multisig_example
6+
7+
8+
@pytest.mark.parametrize(("label", "key"), list(iter_key_registration_test_data()))
9+
def test_multisig_example(label: str, key: str, test_data_lookup: TestDataLookup) -> None:
10+
"""A human-readable example of forming a transaction and signing it with a multisignature sig"""
11+
assert_multisig_example(label, test_data_lookup(key))
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from tests.modules.transact.conftest import TestDataLookup
2+
from tests.modules.transact.transaction_asserts import assert_multisig_example
3+
4+
5+
def test_multisig_example(test_data_lookup: TestDataLookup) -> None:
6+
"""A human-readable example of forming a transaction and signing it with a multisignature sig"""
7+
vector = test_data_lookup("simplePayment")
8+
assert_multisig_example("payment", vector)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import pytest
2+
3+
from tests.modules.transact._helpers import iter_state_proof_test_data
4+
from tests.modules.transact.conftest import TestDataLookup
5+
from tests.modules.transact.transaction_asserts import assert_multisig_example
6+
7+
8+
@pytest.mark.parametrize(("label", "key"), iter_state_proof_test_data())
9+
def test_multisig_example(label: str, key: str, test_data_lookup: TestDataLookup) -> None:
10+
"""A human-readable example of forming a transaction and signing it with a multisignature sig"""
11+
assert_multisig_example(label, test_data_lookup(key))

0 commit comments

Comments
 (0)