   (:require [clojure.test :refer :all]
             [clj-time.coerce :as c]
             [clj-time.core :as t]
-            [cognitect.transit :as transit]
             [memento.handler :refer [app]]
             [memento.db.user :as user]
-            [memento.test.db.core :as tdb]
-            [memento.test.db.memory :as tdm]
             [memento.test.db.user :as tdu]
             [memento.test.routes.helpers :refer [patch-request post-request get-request put-request del-request invoke-login]]
-            [memento.db.core :refer [*db*] :as db]
             [ring.mock.request :refer [request header body]]
-            [clojure.string :as string]
-            [numergent.auth :as auth]
-            [mount.core :as mount]))
+            [mount.core :as mount]
+            [memento.db.reminder :as reminder]))
 
 
 (use-fixtures

            [r-updated r-empty] (patch-request "/api/reminders" (:id initial) {:next-date "2017-01-01"} invalid-token)
            [_ updated] (get-request (str "/api/reminders/" (:id initial)) nil token)
            ]
        ;; TODO: Expand tests, just verifying the basics work right now, since the API may change
        (is (= 201 (:status r-initial)))
        (is (= 404 (:status r-updated)))
        (is (empty? r-empty))                               ; Patch returns no content
        ;; Nothing should have changed
        (is (= initial updated))))
    ))

;; TODO: Tests for
;; - Get active reminders
;; - Mark a reminder as expired
;; - Get reminders for a thought
        (is reminder)
        (is (= 204 (:status deleted)))
        (is (= 404 (:status r-del-reminder)))
        (is (zero? (:total thoughts-after-delete)))
        (is (empty? reminder-after-delete))
        ))))

(deftest test-patch-next-date
  (tdu/init-placeholder-data!)
