Skip to content

Commit ee51dcf

Browse files
committed
tests: verify --get + --json rejects
1 parent b4e5eab commit ee51dcf

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

tests.json

+30
Original file line numberDiff line numberDiff line change
@@ -3244,5 +3244,35 @@
32443244
"stderr": "trurl error: only single-letter query separators are supported\ntrurl error: Try trurl -h for help\n",
32453245
"returncode": 4
32463246
}
3247+
},
3248+
{
3249+
"input": {
3250+
"arguments": [
3251+
"url",
3252+
"--json",
3253+
"--get",
3254+
"{port}"
3255+
]
3256+
},
3257+
"expected": {
3258+
"stdout": "",
3259+
"stderr": "trurl error: --get is mutually exclusive with --json\ntrurl error: Try trurl -h for help\n",
3260+
"returncode": 4
3261+
}
3262+
},
3263+
{
3264+
"input": {
3265+
"arguments": [
3266+
"url",
3267+
"--get",
3268+
"{port}",
3269+
"--json"
3270+
]
3271+
},
3272+
"expected": {
3273+
"stdout": "",
3274+
"stderr": "trurl error: --json is mutually exclusive with --get\ntrurl error: Try trurl -h for help\n",
3275+
"returncode": 4
3276+
}
32473277
}
32483278
]

0 commit comments

Comments
 (0)