kkucharc commented on a change in pull request #11131:
URL:
https://github.com/apache/incubator-superset/pull/11131#discussion_r499740629
##########
File path: tests/databases/api_tests.py
##########
@@ -758,6 +768,38 @@ def test_test_connection_unsafe_uri(self):
}
self.assertEqual(response, expected_response)
+ @pytest.fixture()
+ def load_unicode_dashboard(self):
+ data = [
+ {"phrase": "Под"},
+ {"phrase": "řšž"},
+ {"phrase": "視野無限廣"},
+ {"phrase": "微風"},
+ {"phrase": "中国智造"},
+ {"phrase": "æøå"},
+ {"phrase": "ëœéè"},
+ {"phrase": "いろはにほ"},
+ ]
+ tbl_name = "unicode_test"
+
+ # generate date/numeric data
+ df = pd.DataFrame.from_dict(data)
+
+ with self.create_app().app_context():
+ database = get_example_database()
+ schema = {
+ "phrase": String(500),
+ "dttm": Date(),
+ "value": Float(),
+ }
+ obj = create_table_for_dashboard(df, tbl_name, database, schema)
+ obj.fetch_metadata()
+
+ db.session.commit()
+ position = "{}"
+ create_dashboard("unicode-test", "Unicode Test", position, None)
Review comment:
Thanks for the hint. I changed it this way. Thanks to that I also
removed deleting dashboard from `conftest.py`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]