mirror of
https://github.com/penpot/penpot.git
synced 2025-06-03 20:21:39 +02:00
✨ Start use datoteka.io ns
This commit is contained in:
parent
1e2d100c81
commit
e657c1bbfa
10 changed files with 61 additions and 182 deletions
|
@ -11,10 +11,9 @@
|
|||
[app.http :as http]
|
||||
[app.storage :as sto]
|
||||
[app.test-helpers :as th]
|
||||
[app.util.bytes :as bs]
|
||||
[clojure.java.io :as io]
|
||||
[clojure.test :as t]
|
||||
[datoteka.core :as fs]))
|
||||
[datoteka.fs :as fs]
|
||||
[datoteka.io :as io]))
|
||||
|
||||
(t/use-fixtures :once th/state-init)
|
||||
(t/use-fixtures :each th/database-reset)
|
||||
|
@ -27,7 +26,7 @@
|
|||
|
||||
ttfdata (-> (io/resource "app/test_files/font-1.ttf")
|
||||
io/input-stream
|
||||
bs/read-as-bytes)
|
||||
io/read-as-bytes)
|
||||
|
||||
params {::th/type :create-font-variant
|
||||
:profile-id (:id prof)
|
||||
|
@ -63,7 +62,7 @@
|
|||
|
||||
data (-> (io/resource "app/test_files/font-1.woff")
|
||||
io/input-stream
|
||||
bs/read-as-bytes)
|
||||
io/read-as-bytes)
|
||||
|
||||
params {::th/type :create-font-variant
|
||||
:profile-id (:id prof)
|
||||
|
|
|
@ -12,11 +12,10 @@
|
|||
[app.storage :as sto]
|
||||
[app.test-helpers :as th]
|
||||
[app.util.time :as dt]
|
||||
[app.util.bytes :as bs]
|
||||
[clojure.java.io :as io]
|
||||
[clojure.test :as t]
|
||||
[cuerdas.core :as str]
|
||||
[datoteka.core :as fs]
|
||||
[datoteka.io :as io]
|
||||
[mockery.core :refer [with-mocks]]))
|
||||
|
||||
(t/use-fixtures :once th/state-init)
|
||||
|
@ -199,7 +198,7 @@
|
|||
|
||||
ttfdata (-> (io/resource "app/test_files/font-1.ttf")
|
||||
io/input-stream
|
||||
bs/read-as-bytes)
|
||||
io/read-as-bytes)
|
||||
|
||||
mfile {:filename "sample.jpg"
|
||||
:path (th/tempfile "app/test_files/sample.jpg")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue