You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by yo...@apache.org on 2022/01/28 07:04:08 UTC
[superset] 09/10: fix ut
This is an automated email from the ASF dual-hosted git repository.
yongjiezhao pushed a commit to branch pull/17881
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 0506ddf56cd07e5f186a1fb427d83f2de1b156a8
Author: stephenLYZ <75...@qq.com>
AuthorDate: Fri Jan 21 23:58:28 2022 +0800
fix ut
---
tests/integration_tests/query_context_tests.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/integration_tests/query_context_tests.py b/tests/integration_tests/query_context_tests.py
index 91ce67b..166dfe5 100644
--- a/tests/integration_tests/query_context_tests.py
+++ b/tests/integration_tests/query_context_tests.py
@@ -15,6 +15,7 @@
# specific language governing permissions and limitations
# under the License.
import datetime
+import logging
import re
import time
from typing import Any, Dict
@@ -380,7 +381,7 @@ class TestQueryContext(SupersetTestCase):
assert re.search(r'[`"\[]?num[`"\]]? IS NOT NULL', sql_text)
assert re.search(
r"""NOT \([`"\[]?name[`"\]]? IS NULL[\s\n]* """
- r"""OR [`"\[]?name[`"\]]? IN \('abc'\)\)""",
+ r"""OR [`"\[]?name[`"\]]? IN \('"abc"'\)\)""",
sql_text,
)