Skip to content

Commit 0006a83

Browse files
committed
Add mutually exclusive group cli test
1 parent adc9d0e commit 0006a83

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ def test_options(lookml_path):
3939
assert args.write is True
4040
args = lkml.parse_args([lookml_path, "-w"])
4141
assert args.write is True
42+
with pytest.raises(SystemExit):
43+
args = lkml.parse_args([lookml_path, "--json", "--lookml"])
4244

4345

4446
@patch("lkml.load")

0 commit comments

Comments
 (0)