Skip to content

Commit

Permalink
fix: remove f-string curly braces
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Feb 8, 2022
1 parent 07a8b42 commit 7358a28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/ast/test_folding.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def test_replace_userdefined_attribute(source):
assert vy_ast.compare_nodes(l_ast, r_ast)


userdefined_struct = [("b: Foo = FOO", "b: Foo = Foo({{a: 123, b: 456}})")]
userdefined_struct = [("b: Foo = FOO", "b: Foo = Foo({a: 123, b: 456})")]


@pytest.mark.parametrize("source", userdefined_struct)
Expand All @@ -246,7 +246,7 @@ def test_replace_userdefined_struct(source):
a: uint256
b: uint256
FOO: constant(Foo) = Foo({{a: 123, b: 456}})
FOO: constant(Foo) = Foo({a: 123, b: 456})
"""
l_source = f"{preamble}\n{source[0]}"
r_source = f"{preamble}\n{source[1]}"
Expand All @@ -269,7 +269,7 @@ def test_replace_userdefined_struct_member(source):
a: uint256
b: uint256
FOO: constant(Foo) = Foo({{a: 123, b: 456}})
FOO: constant(Foo) = Foo({a: 123, b: 456})
"""
l_source = f"{preamble}\n{source[0]}"
r_source = f"{preamble}\n{source[1]}"
Expand Down

0 comments on commit 7358a28

Please sign in to comment.