mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 08:50:57 -05:00
🐛 Minor fixes on testing config.
Related to renaming.
This commit is contained in:
parent
51e7ffb959
commit
b57c20ebb6
3 changed files with 9 additions and 9 deletions
|
@ -22,9 +22,9 @@
|
|||
(def defaults
|
||||
{:http-server-port 6060
|
||||
:http-server-cors "http://localhost:3449"
|
||||
:database-uri "postgresql://127.0.0.1/app"
|
||||
:database-username "app"
|
||||
:database-password "app"
|
||||
:database-uri "postgresql://127.0.0.1/uxbox"
|
||||
:database-username "uxbox"
|
||||
:database-password "uxbox"
|
||||
|
||||
:media-directory "resources/public/media"
|
||||
:assets-directory "resources/public/static"
|
||||
|
@ -178,7 +178,7 @@
|
|||
[env]
|
||||
(assoc (read-config env)
|
||||
:redis-uri "redis://redis/1"
|
||||
:database-uri "postgresql://postgres/app_test"
|
||||
:database-uri "postgresql://postgres/uxbox_test"
|
||||
:media-directory "/tmp/app/media"
|
||||
:assets-directory "/tmp/app/static"
|
||||
:migrations-verbose false))
|
||||
|
|
|
@ -29,9 +29,9 @@
|
|||
[]
|
||||
(doto (PGSimpleDataSource.)
|
||||
(.setServerName "postgres")
|
||||
(.setDatabaseName "app_test")
|
||||
(.setUser "app")
|
||||
(.setPassword "app")))
|
||||
(.setDatabaseName "uxbox_test")
|
||||
(.setUser "uxbox")
|
||||
(.setPassword "uxbox")))
|
||||
|
||||
(defn state-init
|
||||
[next]
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
(t/is (= (:name data) (:name result))))))
|
||||
|
||||
(t/testing "query a list of projects"
|
||||
(let [data {::sq/type :projects-by-team
|
||||
(let [data {::sq/type :projects
|
||||
:team-id (:id team)
|
||||
:profile-id (:id prof)}
|
||||
out (th/try-on! (sq/handle data))]
|
||||
|
@ -67,7 +67,7 @@
|
|||
(t/is (nil? (:result out)))))
|
||||
|
||||
(t/testing "query a list of projects after delete"
|
||||
(let [data {::sq/type :projects-by-team
|
||||
(let [data {::sq/type :projects
|
||||
:team-id (:id team)
|
||||
:profile-id (:id prof)}
|
||||
out (th/try-on! (sq/handle data))]
|
||||
|
|
Loading…
Reference in a new issue