mirror of
https://github.com/penpot/penpot.git
synced 2025-06-12 16:51:40 +02:00
👷 Fix backend tests.
This commit is contained in:
parent
7a3616d542
commit
c8e1925065
3 changed files with 6 additions and 1 deletions
|
@ -111,6 +111,7 @@
|
||||||
(defn read-test-config
|
(defn read-test-config
|
||||||
[env]
|
[env]
|
||||||
(assoc (read-config env)
|
(assoc (read-config env)
|
||||||
|
:redis-uri "redis://redis/1"
|
||||||
:database-uri "postgresql://postgres/uxbox_test"
|
:database-uri "postgresql://postgres/uxbox_test"
|
||||||
:media-directory "/tmp/uxbox/media"
|
:media-directory "/tmp/uxbox/media"
|
||||||
:assets-directory "/tmp/uxbox/static"
|
:assets-directory "/tmp/uxbox/static"
|
||||||
|
|
|
@ -38,10 +38,11 @@
|
||||||
[next]
|
[next]
|
||||||
(let [config (cfg/read-test-config env)]
|
(let [config (cfg/read-test-config env)]
|
||||||
(try
|
(try
|
||||||
;; (Class/forName "org.postgresql.Driver")
|
|
||||||
(let [pool (testing-datasource)]
|
(let [pool (testing-datasource)]
|
||||||
(-> (mount/only #{#'uxbox.config/config
|
(-> (mount/only #{#'uxbox.config/config
|
||||||
#'uxbox.db/pool
|
#'uxbox.db/pool
|
||||||
|
#'uxbox.redis/client
|
||||||
|
#'uxbox.redis/conn
|
||||||
#'uxbox.services.init/query-services
|
#'uxbox.services.init/query-services
|
||||||
#'uxbox.services.init/mutation-services
|
#'uxbox.services.init/mutation-services
|
||||||
#'uxbox.migrations/migrations
|
#'uxbox.migrations/migrations
|
||||||
|
|
|
@ -122,6 +122,7 @@
|
||||||
data {::sm/type :update-page
|
data {::sm/type :update-page
|
||||||
:id page-id
|
:id page-id
|
||||||
:revn 0
|
:revn 0
|
||||||
|
:session-id uuid/zero
|
||||||
:profile-id (:id prof)
|
:profile-id (:id prof)
|
||||||
:changes [{:type :add-obj
|
:changes [{:type :add-obj
|
||||||
:frame-id uuid/zero
|
:frame-id uuid/zero
|
||||||
|
@ -145,6 +146,7 @@
|
||||||
|
|
||||||
(t/testing "conflict error"
|
(t/testing "conflict error"
|
||||||
(let [data {::sm/type :update-page
|
(let [data {::sm/type :update-page
|
||||||
|
:session-id uuid/zero
|
||||||
:id page-id
|
:id page-id
|
||||||
:revn 99
|
:revn 99
|
||||||
:profile-id (:id prof)
|
:profile-id (:id prof)
|
||||||
|
@ -177,6 +179,7 @@
|
||||||
data {::sm/type :update-page
|
data {::sm/type :update-page
|
||||||
:id (:id page)
|
:id (:id page)
|
||||||
:revn 0
|
:revn 0
|
||||||
|
:session-id uuid/zero
|
||||||
:profile-id (:id prof)
|
:profile-id (:id prof)
|
||||||
:changes [{:type :add-obj
|
:changes [{:type :add-obj
|
||||||
:id sid
|
:id sid
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue