betodealmeida commented on a change in pull request #11751:
URL: 
https://github.com/apache/incubator-superset/pull/11751#discussion_r528879838



##########
File path: tests/dashboards/api_tests.py
##########
@@ -1077,3 +1086,86 @@ def test_export_bundle_not_allowed(self):
 
         db.session.delete(dashboard)
         db.session.commit()
+
+    def test_import_dashboard(self):
+        """
+        Dashboard API: Test import dashboard
+        """
+        self.login(username="admin")
+        uri = "api/v1/dashboard/import/"
+
+        buf = BytesIO()
+        with ZipFile(buf, "w") as bundle:

Review comment:
       The bundle in `test_import_dashboard_invalid` is slightly different, the 
`metadata.yaml` is wrong.




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

Reply via email to