Skip to content

Commit c13f064

Browse files
update failing test which is picked up by pytest
1 parent 6504542 commit c13f064

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

tests/utils/test_metaprogramming.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def other_func(a: int) -> int:
108108

109109

110110
@contextmanager
111-
def test_context_manager():
111+
def sample_context_manager():
112112
yield
113113

114114

@@ -141,7 +141,7 @@ def main_func(y: int, foo=exp.true(), *, bar=expressions.Literal.number(1) + 2)
141141
def closure(z: int) -> int:
142142
return z + Z
143143

144-
with test_context_manager():
144+
with sample_context_manager():
145145
pass
146146

147147
return closure(y) + other_func(Y)
@@ -171,7 +171,7 @@ def test_func_globals() -> None:
171171
"exp": exp,
172172
"expressions": exp,
173173
"fetch_data": fetch_data,
174-
"test_context_manager": test_context_manager,
174+
"sample_context_manager": sample_context_manager,
175175
"function_with_custom_decorator": function_with_custom_decorator,
176176
"SQLGLOT_META": SQLGLOT_META,
177177
}
@@ -211,7 +211,7 @@ def test_normalize_source() -> None:
211211
212212
def closure(z: int):
213213
return z + Z
214-
with test_context_manager():
214+
with sample_context_manager():
215215
pass
216216
return closure(y) + other_func(Y)"""
217217
)
@@ -261,7 +261,7 @@ def test_serialize_env() -> None:
261261
262262
def closure(z: int):
263263
return z + Z
264-
with test_context_manager():
264+
with sample_context_manager():
265265
pass
266266
return closure(y) + other_func(Y)""",
267267
),
@@ -318,9 +318,9 @@ def baz(self):
318318
),
319319
"func": Executable(
320320
payload="""@contextmanager
321-
def test_context_manager():
321+
def sample_context_manager():
322322
yield""",
323-
name="test_context_manager",
323+
name="sample_context_manager",
324324
path="test_metaprogramming.py",
325325
alias="func",
326326
),
@@ -344,11 +344,11 @@ def test_context_manager():
344344
my_lambda()
345345
return X + a + W""",
346346
),
347-
"test_context_manager": Executable(
347+
"sample_context_manager": Executable(
348348
payload="""@contextmanager
349-
def test_context_manager():
349+
def sample_context_manager():
350350
yield""",
351-
name="test_context_manager",
351+
name="sample_context_manager",
352352
path="test_metaprogramming.py",
353353
),
354354
"wraps": Executable(payload="from functools import wraps", kind=ExecutableKind.IMPORT),

0 commit comments

Comments
 (0)