From 7358a28a6114ecb2c4903d512c16c324990c308d Mon Sep 17 00:00:00 2001 From: Gary Tse Date: Mon, 24 Jan 2022 13:44:08 +0800 Subject: [PATCH] fix: remove f-string curly braces --- tests/ast/test_folding.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/ast/test_folding.py b/tests/ast/test_folding.py index 5c090023b90..5f6ebcf5429 100644 --- a/tests/ast/test_folding.py +++ b/tests/ast/test_folding.py @@ -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) @@ -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]}" @@ -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]}"