Skip to content

Commit

Permalink
make only one step for allow more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ahangsu committed Apr 27, 2023
1 parent 1fc588c commit 1a2c601
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions tests/steps/other_v2_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -1494,17 +1494,10 @@ def attach_sim_request_to_txn_group_simulation(context):
)


@then('I check the simulation result has power packs "{power}".')
def power_pack_simulation_should_pass(context, power: str):
packs = power.split(",")
if len(packs) == 0:
assert not context.simulate_response.eval_overrides
else:
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
@then('I check the simulation result has power packs allow-more-logging.')
def power_pack_simulation_should_pass(context):
assert context.simulate_response.eval_overrides.max_log_calls
assert context.simulate_response.eval_overrides.max_log_size


@when("I prepare the transaction without signatures for simulation")
Expand Down

0 comments on commit 1a2c601

Please sign in to comment.