0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-11 07:11:32 -05:00

👷 Fix backend tests.

This commit is contained in:
Andrey Antukh 2020-05-18 14:19:31 +02:00
parent 7a3616d542
commit c8e1925065
3 changed files with 6 additions and 1 deletions

View file

@ -111,6 +111,7 @@
(defn read-test-config
[env]
(assoc (read-config env)
:redis-uri "redis://redis/1"
:database-uri "postgresql://postgres/uxbox_test"
:media-directory "/tmp/uxbox/media"
:assets-directory "/tmp/uxbox/static"

View file

@ -38,10 +38,11 @@
[next]
(let [config (cfg/read-test-config env)]
(try
;; (Class/forName "org.postgresql.Driver")
(let [pool (testing-datasource)]
(-> (mount/only #{#'uxbox.config/config
#'uxbox.db/pool
#'uxbox.redis/client
#'uxbox.redis/conn
#'uxbox.services.init/query-services
#'uxbox.services.init/mutation-services
#'uxbox.migrations/migrations

View file

@ -122,6 +122,7 @@
data {::sm/type :update-page
:id page-id
:revn 0
:session-id uuid/zero
:profile-id (:id prof)
:changes [{:type :add-obj
:frame-id uuid/zero
@ -145,6 +146,7 @@
(t/testing "conflict error"
(let [data {::sm/type :update-page
:session-id uuid/zero
:id page-id
:revn 99
:profile-id (:id prof)
@ -177,6 +179,7 @@
data {::sm/type :update-page
:id (:id page)
:revn 0
:session-id uuid/zero
:profile-id (:id prof)
:changes [{:type :add-obj
:id sid