zhaoyongjie commented on code in PR #19750:
URL: https://github.com/apache/superset/pull/19750#discussion_r852525028


##########
tests/conftest.py:
##########
@@ -103,3 +105,23 @@ def data_loader(
     return PandasDataLoader(
         example_db_engine, pandas_loader_configuration, table_to_df_convertor
     )
+
+
+@fixture
+def superset_app_ctx():
+    with app.app_context() as ctx:
+        yield ctx
+
+
+@fixture
+def load_sales_dataset():
+    with app.app_context():
+        loader = CsvDatasetLoader(
+            
"https://raw.githubusercontent.com/apache-superset/examples-data/lowercase_columns_examples/datasets/examples/sales.csv";,
+            parse_dates=["order_date"],
+        )
+        loader.load_table()
+        dataset = loader.load_dataset()
+        yield dataset
+        loader.remove_dataset()
+        loader.remove_table()

Review Comment:
   make sense. I will do.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to