build: Add python 3.8 to the build matrix (#9827)

This commit is contained in:
Erik Ritter
2020-05-17 14:49:51 -07:00
committed by GitHub
parent 53b58edd6f
commit c7c76c6a99
6 changed files with 14 additions and 11 deletions

View File

@@ -16,10 +16,10 @@
# under the License.
# isort:skip_file
"""Unit tests for Superset"""
import cgi
import csv
import datetime
import doctest
import html
import io
import json
import logging
@@ -1150,7 +1150,11 @@ class CoreTests(SupersetTestCase):
{"FOO": lambda x: 1, "super": "set"},
default=utils.pessimistic_json_iso_dttm_ser,
)
html = cgi.escape(encoded).replace("'", "'").replace('"', """)
html_string = (
html.escape(encoded, quote=False)
.replace("'", "'")
.replace('"', """)
)
urls = [
"/superset/sqllab",
@@ -1161,7 +1165,7 @@ class CoreTests(SupersetTestCase):
]
for url in urls:
data = self.get_resp(url)
self.assertTrue(html in data)
self.assertTrue(html_string in data)
@mock.patch.dict(
"superset.extensions.feature_flag_manager._feature_flags",