Skip to content

Commit

Permalink
fix lint, some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Dec 31, 2023
1 parent 3fb3bc0 commit 8ac8fe6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/functional/codegen/test_call_graph_stability.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def foo():
t = CompilerData(code)

# check the .called_functions data structure on foo() directly
foo = t.vyper_module_annotated.get_children(vy_ast.FunctionDef, filters={"name": "foo"})[0]
foo = t.annotated_vyper_module.get_children(vy_ast.FunctionDef, filters={"name": "foo"})[0]
foo_t = foo._metadata["func_type"]
assert [f.name for f in foo_t.called_functions] == func_names

Expand Down
4 changes: 2 additions & 2 deletions tests/unit/ast/test_ast_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def test_basic_ast():
code = """
a: int128
"""
dict_out = compiler.compile_code(code, output_formats=["ast_dict"], source_id=0)
assert dict_out["ast_dict"]["ast"]["body"][0] == {
dict_out = compiler.compile_code(code, output_formats=["annotated_ast_dict"], source_id=0)
assert dict_out["annotated_ast_dict"]["ast"]["body"][0] == {
"annotation": {
"ast_type": "Name",
"col_offset": 3,
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/ast/test_natspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def doesEat(food: String[30], qty: uint256) -> bool:


def parse_natspec(code):
vyper_ast = CompilerData(code).vyper_module_annotated
vyper_ast = CompilerData(code).annotated_vyper_module
return vy_ast.parse_natspec(vyper_ast)


Expand Down

0 comments on commit 8ac8fe6

Please sign in to comment.