Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonpaulos committed Dec 21, 2023
1 parent 149e468 commit e4bdfbe
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
8 changes: 7 additions & 1 deletion tests/blackbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,13 @@ def approval():

return approval

def compile(self, version: int, *, assemble_constants: bool = False, assembly_type_track: bool = True) -> str:
def compile(
self,
version: int,
*,
assemble_constants: bool = False,
assembly_type_track: bool = True,
) -> str:
return compileTeal(
self.program(),
self.mode,
Expand Down
22 changes: 19 additions & 3 deletions tests/integration/graviton_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,22 @@


def wrap_compile_and_save(
subr, mode, version, assemble_constants, test_name, case_name, *, assembly_type_track: bool = True,
subr,
mode,
version,
assemble_constants,
test_name,
case_name,
*,
assembly_type_track: bool = True,
):
is_app = mode == pt.Mode.Application

teal = PyTealDryRunExecutor(subr, mode).compile(version, assemble_constants=assemble_constants, assembly_type_track=assembly_type_track)
teal = PyTealDryRunExecutor(subr, mode).compile(
version,
assemble_constants=assemble_constants,
assembly_type_track=assembly_type_track,
)
tealfile = f'{"app" if is_app else "lsig"}_{case_name}_v{version}.teal'

tealdir = GENERATED / test_name
Expand Down Expand Up @@ -481,7 +492,12 @@ def blackbox_test_runner(

# 1. Compile to TEAL
teal, _, tealfile = wrap_compile_and_save(
subr, mode, version, assemble_constants, "blackbox", case_name,
subr,
mode,
version,
assemble_constants,
"blackbox",
case_name,
# Temporarily disabling until https://github.com/algorand/go-algorand/pull/5884 is released
assembly_type_track=False,
)
Expand Down

0 comments on commit e4bdfbe

Please sign in to comment.