refactor input spec
This commit is contained in:
parent
ce25f94fc3
commit
7097edcc77
7 changed files with 7 additions and 7 deletions
|
@ -28,7 +28,7 @@
|
||||||
:test `(fn []
|
:test `(fn []
|
||||||
(doseq [data-spec# (loader/load-data-test-specs ~namespaced-test-key#)]
|
(doseq [data-spec# (loader/load-data-test-specs ~namespaced-test-key#)]
|
||||||
(let [~(symbol (first bindings)) (:input data-spec#)
|
(let [~(symbol (first bindings)) (:input data-spec#)
|
||||||
~(symbol (second bindings)) (:expectation data-spec#)
|
~(symbol (second bindings)) (:expected data-spec#)
|
||||||
data-spec-file# (:data-spec-file data-spec#)
|
data-spec-file# (:data-spec-file data-spec#)
|
||||||
message# (new java.io.StringWriter)]
|
message# (new java.io.StringWriter)]
|
||||||
(binding [t/*testing-contexts*
|
(binding [t/*testing-contexts*
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
;TODO: replace schema with spec
|
;TODO: replace schema with spec
|
||||||
(def TestDataSpec
|
(def TestDataSpec
|
||||||
{:input s/Any
|
{:input s/Any
|
||||||
:expectation s/Any})
|
:expected s/Any})
|
||||||
|
|
||||||
(def RuntimeTestDataSpec
|
(def RuntimeTestDataSpec
|
||||||
(merge
|
(merge
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
{:input 1
|
{:input 1
|
||||||
:expectation 1}
|
:expected 1}
|
|
@ -1,2 +1,2 @@
|
||||||
{:input 1
|
{:input 1
|
||||||
:expectation 1}
|
:expected 1}
|
|
@ -1,2 +1,2 @@
|
||||||
{:input 2
|
{:input 2
|
||||||
:expectation 2}
|
:expected 2}
|
|
@ -1,2 +1,2 @@
|
||||||
{:input 1
|
{:input 1
|
||||||
:expectation 1}
|
:expected 1}
|
|
@ -1,2 +1,2 @@
|
||||||
{:input 1
|
{:input 1
|
||||||
:expectation 1}
|
:expected 1}
|
Loading…
Reference in a new issue