summaryrefslogtreecommitdiffstats
path: root/tests/test_transpile.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-07-06 07:28:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-07-06 07:28:09 +0000
commit52f4a5e2260f3e5b919b4e270339afd670bf0b8a (patch)
tree5ca419af0e2e409018492b82f5b9847f0112b5fb /tests/test_transpile.py
parentAdding upstream version 16.7.7. (diff)
downloadsqlglot-52f4a5e2260f3e5b919b4e270339afd670bf0b8a.tar.xz
sqlglot-52f4a5e2260f3e5b919b4e270339afd670bf0b8a.zip
Adding upstream version 17.2.0.upstream/17.2.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/test_transpile.py')
-rw-r--r--tests/test_transpile.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_transpile.py b/tests/test_transpile.py
index 8d762d3..1138b4e 100644
--- a/tests/test_transpile.py
+++ b/tests/test_transpile.py
@@ -511,11 +511,11 @@ FROM v""",
)
@mock.patch("sqlglot.helper.logger")
- def test_index_offset(self, mock_logger):
+ def test_index_offset(self, logger):
self.validate("x[0]", "x[1]", write="presto", identity=False)
self.validate("x[1]", "x[0]", read="presto", identity=False)
- mock_logger.warning.assert_any_call("Applying array index offset (%s)", 1)
- mock_logger.warning.assert_any_call("Applying array index offset (%s)", -1)
+ logger.warning.assert_any_call("Applying array index offset (%s)", 1)
+ logger.warning.assert_any_call("Applying array index offset (%s)", -1)
self.validate("x[x - 1]", "x[x - 1]", write="presto", identity=False)
self.validate(