Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Accept string target :type in transform test helper (#69804)

Dan Stone0e113a5c6876
diff --git a/test/metabase/transforms/test_util.clj b/test/metabase/transforms/test_util.clj
index 720d249348c..79f134fad47 100644
--- a/test/metabase/transforms/test_util.clj
+++ b/test/metabase/transforms/test_util.clj
@@ -31,7 +31,10 @@
api/*current-user-id* (mt/user->id :crowberto)]
;; Drop the actual table/view from the database
(try
- (driver/drop-transform-target! driver (mt/db) target)
+ (driver/drop-transform-target! driver (mt/db) (update target :type (fn [target-type]
+ (if (string? target-type)
+ (keyword target-type)
+ target-type))))
(catch Exception e
(log/warnf e "Failed to drop transform target table %s.%s for driver %s"
(:schema target) (:name target) driver)))