Skip to content

Commit

Permalink
chore: Cleanup unused requires etc
Browse files Browse the repository at this point in the history
  • Loading branch information
goshatch committed Oct 2, 2024
1 parent fbb4705 commit 2339044
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 33 deletions.
1 change: 1 addition & 0 deletions src/tools/ifs/parts/api/middleware.clj
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
(wrap-defaults (-> site-defaults
(assoc-in [:session :store] (cookie-store))))
(wrap-resource "public")
(wrap-session)
(wrap-content-type)))

;; FIXME: This feels like it shouldn't need a custom middleware, right? Is there
Expand Down
1 change: 0 additions & 1 deletion src/tools/ifs/parts/auth.clj
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
:display-name "Test User"
:password "password123"
:role "client"})
(register user)

(def token (authenticate {:email "[email protected]" :password "password123"}))

Expand Down
4 changes: 1 addition & 3 deletions test/tools/ifs/parts/api/middleware_test.clj
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
(ns tools.ifs.parts.api.middleware-test
(:require [clojure.test :refer :all]
(:require [clojure.test :refer [deftest is testing]]
[tools.ifs.parts.api.middleware :as middleware]
[com.brunobonacci.mulog :as mulog]
[com.brunobonacci.mulog.buffer :as rb]
[ring.mock.request :as mock]
[reitit.ring :as ring])
(:import (org.sqlite SQLiteException SQLiteErrorCode)))
Expand Down
3 changes: 1 addition & 2 deletions test/tools/ifs/parts/entity/user_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
(:require [clojure.test :refer [deftest is testing use-fixtures]]
[tools.ifs.helpers.test-helpers :refer [with-test-db register-test-user]]
[tools.ifs.helpers.test-factory :as factory]
[tools.ifs.parts.entity.user :as user]
[tools.ifs.parts.db :as db]))
[tools.ifs.parts.entity.user :as user]))

(use-fixtures :once with-test-db)

Expand Down
27 changes: 0 additions & 27 deletions test/tools/ifs/parts_test.clj

This file was deleted.

0 comments on commit 2339044

Please sign in to comment.