mirror of
https://github.com/penpot/penpot.git
synced 2026-10-31 23:10:31 +00:00
The holder vocabulary names the persisted relation write an export, so the batch tier takes app.graph.export, its file entry point becomes export-file!, and the two on-connection helpers follow inside the namespace. print-ingest! and the srepl ingest-file-to-graph! keep their names, with their references repointed; their own renames can ride a reviewer's ask. AI-assisted-by: glm-5.3-flash Signed-off-by: Álvaro Tejero Cantero <alvorithm@teje.ro>
23 lines
905 B
Clojure
23 lines
905 B
Clojure
;; This Source Code Form is subject to the terms of the Mozilla Public
|
|
;; License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
;; file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
;;
|
|
;; Copyright (c) KALEIDOS SUBSIDIARY SL
|
|
|
|
(ns backend-tests.graph-export-test
|
|
"The batch-export tier, `app.graph.export`, which survives the retirement of
|
|
the Ladybug session sync."
|
|
(:require
|
|
[app.common.uuid :as uuid]
|
|
[app.graph.export :as export]
|
|
[clojure.test :as t]))
|
|
|
|
(t/deftest export-on-connection-requires-allocator
|
|
;; The allocator must outlive the connection, so export cannot make its own
|
|
;; inside the call — see `app.graph.arrow/with-allocator!`.
|
|
(try
|
|
(export/export-on-connection! nil nil (uuid/next))
|
|
(t/is false "expected :missing-arrow-allocator")
|
|
(catch clojure.lang.ExceptionInfo e
|
|
(t/is (= :missing-arrow-allocator (:code (ex-data e)))))))
|