Skip to content

Commit

Permalink
cljstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
Krisztian Gulyas committed Apr 21, 2021
1 parent e284fd2 commit ffd70eb
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions test/framework_fixture.clj
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
(ns framework-fixture
(:require
[com.stuartsierra.component :as component]
[framework.components.interceptors :as interceptors]
[framework.components.session.backend :as session-backend]
[framework.components.web-server.core :refer [->web-server]]
[framework.config.core :as config]
[framework.db.storage :refer [->postgresql]]
[next.jdbc :as jdbc])
[com.stuartsierra.component :as component]
[framework.components.interceptors :as interceptors]
[framework.components.session.backend :as session-backend]
[framework.components.web-server.core :refer [->web-server]]
[framework.config.core :as config]
[framework.db.storage :refer [->postgresql]]
[next.jdbc :as jdbc])
(:import
(com.opentable.db.postgres.embedded
EmbeddedPostgres)))
(com.opentable.db.postgres.embedded
EmbeddedPostgres)))

(def routes
["/users" {:get #(assoc % :response {:status 200 :body "Ok"})}])
Expand All @@ -35,7 +35,6 @@
(interceptors/db-access)
(interceptors/message 6)]}))


(defn system
[config app-config routes]
{:db (->postgresql config)
Expand All @@ -49,9 +48,9 @@
db-config (-> config
:framework.db.storage/postgresql
(assoc
:port pg-port
:embedded pg
:subname (str "//localhost:" pg-port "/framework")))]
:port pg-port
:embedded pg
:subname (str "//localhost:" pg-port "/framework")))]
(jdbc/execute! (dissoc db-config :dbname) [nuke-sql])
(assoc config :framework.db.storage/postgresql db-config)))

Expand Down

0 comments on commit ffd70eb

Please sign in to comment.