Skip to content

Commit 9ae671d

Browse files
committed
test
1 parent 93911ce commit 9ae671d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_base_sql/test_ast.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from copy import deepcopy
2+
13
from mindsdb_sql_parser.ast import *
24

35

@@ -24,3 +26,8 @@ def test_copy(self):
2426
# change
2527
ast.where.args[0] = Constant(1)
2628
assert ast.to_tree() != ast2.to_tree()
29+
30+
def test_identifier_deepcopy_is_quoted(self):
31+
ident = Identifier('`a`')
32+
ident2 = deepcopy(ident)
33+
assert ident2.is_quoted == [True]

0 commit comments

Comments
 (0)