Skip to content

Commit

Permalink
CU-86a1huqre - Refactor test_variable.py to use BoaTestConstructor
Browse files Browse the repository at this point in the history
  • Loading branch information
jplippi committed Jan 17, 2024
1 parent fe23c81 commit 4966c4c
Show file tree
Hide file tree
Showing 2 changed files with 281 additions and 495 deletions.
7 changes: 6 additions & 1 deletion boa3_test/tests/boatestcase.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
from neo3.wallet import account

from boa3.internal import env, constants
from boa3.internal.analyser.analyser import Analyser
from boa3.internal.compiler.compiler import Compiler
from boa3.internal.exception.CompilerError import CompilerError
from boa3.internal.exception.CompilerWarning import CompilerWarning
from boa3_test.tests.boa_test import (USE_UNIQUE_NAME, # move theses to this module when refactoring is done
Expand Down Expand Up @@ -319,7 +321,7 @@ def assertCompile(self,
py_abs_path,
root_folder=root_folder,
fail_fast=fail_fast,
kwargs=kwargs
**kwargs
)

return result, {}
Expand Down Expand Up @@ -660,3 +662,6 @@ def get_serialized_output(self, path: str) -> CompilerOutput:
manifest = json.loads(manifest_output.read())

return output, manifest

def get_compiler_analyser(self, compiler: Compiler) -> Analyser:
return compiler._analyser

0 comments on commit 4966c4c

Please sign in to comment.