move problematic test to own ns
this test is clj-only and also causes rendering problems for portal due to the #object[] in the rendered test report Signed-off-by: Sean Corfield <sean@corfield.org>
This commit is contained in:
parent
9b9ec47bcf
commit
ac947b1543
2 changed files with 10 additions and 7 deletions
|
|
@ -1277,13 +1277,6 @@ ORDER BY id = ? DESC
|
|||
(is (= ["SELECT FOO(bar) AT TIME ZONE 'UTC'"]
|
||||
(sut/format {:select [[[:at-time-zone [:foo :bar] :UTC]]]}))))
|
||||
|
||||
(deftest unhashable-value-509
|
||||
(let [unhashable (reify Object
|
||||
(toString [_] "unhashable")
|
||||
(hashCode [_] (throw (ex-info "Unsupported" {}))))]
|
||||
(is (= ["INSERT INTO table VALUES (?)" unhashable]
|
||||
(sut/format {:insert-into :table :values [[unhashable]]})))))
|
||||
|
||||
(deftest issue-512
|
||||
(testing "select with metadata"
|
||||
(is (= ["SELECT DISTINCT * FROM table"]
|
||||
|
|
|
|||
10
test/honey/unhashable_test.clj
Normal file
10
test/honey/unhashable_test.clj
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
(ns honey.unhashable-test
|
||||
(:require [clojure.test :refer [deftest is]]
|
||||
[honey.sql :as sut]))
|
||||
|
||||
(deftest unhashable-value-509
|
||||
(let [unhashable (reify Object
|
||||
(toString [_] "unhashable")
|
||||
(hashCode [_] (throw (ex-info "Unsupported" {}))))]
|
||||
(is (= ["INSERT INTO table VALUES (?)" unhashable]
|
||||
(sut/format {:insert-into :table :values [[unhashable]]})))))
|
||||
Loading…
Reference in a new issue