Skip to content

Commit

Permalink
Added test for jq
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdemin committed May 21, 2017
1 parent 70de4e7 commit 92c9b8e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/unit/transforms/test_json.py
@@ -0,0 +1,8 @@
from kibitzr.transformer import transform_factory


def test_jq_sample():
pipeline = transform_factory({'transform': [{'jq': '.a'}]})
ok, content = pipeline(True, '{"a": 1, "b": 2}')
assert ok is True
assert content == "1"

0 comments on commit 92c9b8e

Please sign in to comment.