Further work on Postgres transform, still not perfect.
Current unit tests are almost worthless; need new tests.
This commit is contained in:
parent
38f9c0f0e4
commit
0a23cacd04
2 changed files with 57 additions and 49 deletions
|
|
@ -1,8 +1,9 @@
|
|||
(ns adl.to-psql-test
|
||||
(:require [clojure.string :as s]
|
||||
[clojure.test :refer :all]
|
||||
[adl.to-psql :refer :all]
|
||||
[adl-support.utils :refer :all]))
|
||||
(:require
|
||||
[adl-support.utils :refer [child child-with-tag]]
|
||||
[adl.to-psql :refer [emit-convenience-entity-field emit-convenience-view
|
||||
emit-property emit-table]]
|
||||
[clojure.test :refer [deftest is testing]]))
|
||||
|
||||
;; (deftest link-property-test
|
||||
;; (testing "No field generated for link property"
|
||||
|
|
@ -12,9 +13,9 @@
|
|||
(let [application {:tag :application,
|
||||
:attrs {:version "0.1.1",
|
||||
:name "youyesyet",
|
||||
:xmlns:adl "http://bowyer.journeyman.cc/adl/1.4.1/",
|
||||
:xmlns:adl "http://www.journeyman.cc/adl/1.4.7/",
|
||||
:xmlns:html "http://www.w3.org/1999/xhtml",
|
||||
:xmlns "http://bowyer.journeyman.cc/adl/1.4.1/"}
|
||||
:xmlns "http://www.journeyman.cc/adl/1.4.7/"}
|
||||
:content
|
||||
[{:tag :typedef,
|
||||
:attrs
|
||||
|
|
@ -443,9 +444,9 @@
|
|||
{:tag :application,
|
||||
:attrs {:version "0.0.1",
|
||||
:name "pastoralist",
|
||||
:xmlns:adl "http://bowyer.journeyman.cc/adl/1.4.1/",
|
||||
:xmlns:adl "http://www.journeyman.cc/adl/1.4.7/",
|
||||
:xmlns:html "http://www.w3.org/1999/xhtml",
|
||||
:xmlns "http://bowyer.journeyman.cc/adl/1.4.1/"},
|
||||
:xmlns "http://www.journeyman.cc/adl/1.4.7/"},
|
||||
:content [{:tag :documentation,
|
||||
:attrs nil,
|
||||
:content ["A web-app intended to be used by pastoralists in managing
|
||||
|
|
@ -502,9 +503,9 @@
|
|||
{:tag :application,
|
||||
:attrs {:version "0.0.1",
|
||||
:name "pastoralist",
|
||||
:xmlns:adl "http://bowyer.journeyman.cc/adl/1.4.1/",
|
||||
:xmlns:adl "http://www.journeyman.cc/adl/1.4.7/",
|
||||
:xmlns:html "http://www.w3.org/1999/xhtml",
|
||||
:xmlns "http://bowyer.journeyman.cc/adl/1.4.1/"},
|
||||
:xmlns "http://www.journeyman.cc/adl/1.4.7/"},
|
||||
:content [{:tag :documentation,
|
||||
:attrs nil,
|
||||
:content ["A web-app intended to be used by pastoralists in managing
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue