I have a web service that uses Korma for interacting with my db. To mock
data for unit tests I want to re-bind korma.core/select to return known
data and not hit a db.
Currently I have a db ns:
(nsservices.db
(:require [korma.core :refer :all]
[korma.db :refer :all
for interacting with my db. To mock
data for unit tests I want to re-bind korma.core/select to return known
data and not hit a db.
Currently I have a db ns:
(nsservices.db
(:require [korma.core :refer :all]
[korma.db :refer :all]))
With a function 'func-select' that calls