Skip to content

Commit

Permalink
power pack checking
Browse files Browse the repository at this point in the history
  • Loading branch information
ahangsu committed Apr 26, 2023
1 parent a8b11e8 commit 7a77a88
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/steps/other_v2_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -1494,6 +1494,19 @@ def attach_sim_request_to_txn_group_simulation(context):
)


@then('the simulation with "{power}" should not have failure message.')
def power_pack_simulation_should_pass(context, power: str):
packs = power.split(',')
if len(packs) > 0:
assert context.simulate_response.eval_overrides

if 'allow-more-logging' in packs:
assert context.simulate_response.eval_overrides.max_log_calls
assert context.simulate_response.eval_overrides.max_log_size

assert len(context.simulate_response.failure_message) == 0


@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 7a77a88

Please sign in to comment.