Skip to content

Commit

Permalink
test.py: use valid values for jsonargs. Fixes #172
Browse files Browse the repository at this point in the history
  • Loading branch information
kislyuk committed Sep 9, 2023
1 parent b82e1b9 commit c9a8480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def test_jq16_arg_passthrough(self):
self.run_yq("{}", ["--indentless", "-y", ".a=$ARGS.positional", "--args", "a", "b"]), "a:\n- a\n- b\n"
)
self.assertEqual(self.run_yq("{}", ["-y", ".a=$ARGS.positional", "--args", "a", "b"]), "a:\n - a\n - b\n")
self.assertEqual(self.run_yq("{}", [".", "--jsonargs", "a", "b"]), "")
self.assertEqual(self.run_yq("{}", [".", "--jsonargs", "{}", "{}"]), "")

def test_short_option_separation(self):
# self.assertEqual(self.run_yq('{"a": 1}', ["-yCcC", "."]), "a: 1\n") - Fails on 2.7 and 3.8
Expand Down

0 comments on commit c9a8480

Please sign in to comment.