Merge pull request #92 from opencultureconsulting:felixlohmeier/info-9
add test for info command
This commit is contained in:
commit
636ae7a271
|
@ -9,10 +9,17 @@ trap '{ rm -rf "${tmpdir}"; }' 0 2 3 15
|
||||||
# input
|
# input
|
||||||
cp data/example.csv "${tmpdir}/${t}.csv"
|
cp data/example.csv "${tmpdir}/${t}.csv"
|
||||||
|
|
||||||
|
# assertion
|
||||||
|
cat << "DATA" > "${tmpdir}/${t}.assert"
|
||||||
|
a
|
||||||
|
b
|
||||||
|
c
|
||||||
|
DATA
|
||||||
|
|
||||||
# action
|
# action
|
||||||
cd "${tmpdir}" || exit 1
|
cd "${tmpdir}" || exit 1
|
||||||
orcli import csv "${t}.csv"
|
orcli import csv "${t}.csv"
|
||||||
orcli info "${t} csv"
|
orcli info "${t} csv" | jq -r .columns[] > "${t}.output"
|
||||||
|
|
||||||
# test
|
# test
|
||||||
# grep "${t}" "${t}.output"
|
diff -u "${t}.assert" "${t}.output"
|
||||||
|
|
Loading…
Reference in New Issue