0
Fork 0
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:
Andrey Antukh 2020-08-24 12:51:05 +02:00
parent 51e7ffb959
commit b57c20ebb6
3 changed files with 9 additions and 9 deletions

View file

@ -22,9 +22,9 @@
(def defaults (def defaults
{:http-server-port 6060 {:http-server-port 6060
:http-server-cors "http://localhost:3449" :http-server-cors "http://localhost:3449"
:database-uri "postgresql://127.0.0.1/app" :database-uri "postgresql://127.0.0.1/uxbox"
:database-username "app" :database-username "uxbox"
:database-password "app" :database-password "uxbox"
:media-directory "resources/public/media" :media-directory "resources/public/media"
:assets-directory "resources/public/static" :assets-directory "resources/public/static"
@ -178,7 +178,7 @@
[env] [env]
(assoc (read-config env) (assoc (read-config env)
:redis-uri "redis://redis/1" :redis-uri "redis://redis/1"
:database-uri "postgresql://postgres/app_test" :database-uri "postgresql://postgres/uxbox_test"
:media-directory "/tmp/app/media" :media-directory "/tmp/app/media"
:assets-directory "/tmp/app/static" :assets-directory "/tmp/app/static"
:migrations-verbose false)) :migrations-verbose false))

View file

@ -29,9 +29,9 @@
[] []
(doto (PGSimpleDataSource.) (doto (PGSimpleDataSource.)
(.setServerName "postgres") (.setServerName "postgres")
(.setDatabaseName "app_test") (.setDatabaseName "uxbox_test")
(.setUser "app") (.setUser "uxbox")
(.setPassword "app"))) (.setPassword "uxbox")))
(defn state-init (defn state-init
[next] [next]

View file

@ -31,7 +31,7 @@
(t/is (= (:name data) (:name result)))))) (t/is (= (:name data) (:name result))))))
(t/testing "query a list of projects" (t/testing "query a list of projects"
(let [data {::sq/type :projects-by-team (let [data {::sq/type :projects
:team-id (:id team) :team-id (:id team)
:profile-id (:id prof)} :profile-id (:id prof)}
out (th/try-on! (sq/handle data))] out (th/try-on! (sq/handle data))]
@ -67,7 +67,7 @@
(t/is (nil? (:result out))))) (t/is (nil? (:result out)))))
(t/testing "query a list of projects after delete" (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) :team-id (:id team)
:profile-id (:id prof)} :profile-id (:id prof)}
out (th/try-on! (sq/handle data))] out (th/try-on! (sq/handle data))]