Skip to content

Commit

Permalink
minor, change branch of testing, one first step for making simulate r…
Browse files Browse the repository at this point in the history
…equest
  • Loading branch information
ahangsu committed Apr 26, 2023
1 parent f67ff32 commit 2ce9a0e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .test-env
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Configs for testing repo download:
SDK_TESTING_URL="https://github.com/algorand/algorand-sdk-testing"
SDK_TESTING_BRANCH="master"
SDK_TESTING_BRANCH="simulate-request-log-option"
SDK_TESTING_HARNESS="test-harness"

INSTALL_ONLY=0
Expand Down
2 changes: 1 addition & 1 deletion algosdk/atomic_transaction_composer.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def __init__(
simulate_response: Dict[str, Any],
tx_ids: List[str],
results: List[SimulateABIResult],
eval_overrides: Optional[SimulateEvalOverrides],
eval_overrides: Optional[SimulateEvalOverrides] = None,
) -> None:
self.version = version
self.would_succeed = would_succeed
Expand Down
1 change: 1 addition & 0 deletions tests/integration.tags
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@
@send
@send.keyregtxn
@simulate
@simulate.lift_log_limits
6 changes: 6 additions & 0 deletions tests/steps/other_v2_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
ApplicationLocalState,
DryrunRequest,
DryrunSource,
SimulateRequest,
)
from tests.steps.steps import algod_port, indexer_port
from tests.steps.steps import token as daemon_token
Expand Down Expand Up @@ -1474,6 +1475,11 @@ def simulate_atc_failure(context, group, path, message):
assert message in resp.failure_message


@when("I make a new simulate request")
def make_simulate_request(context):
context.simulate_request = SimulateRequest(txn_groups=[])


@when("I prepare the transaction without signatures for simulation")
def step_impl(context):
context.stx = transaction.SignedTransaction(context.txn, None)
Expand Down

0 comments on commit 2ce9a0e

Please sign in to comment.