We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5305a5e commit a3e04fbCopy full SHA for a3e04fb
scim2_cli/__init__.py
@@ -111,6 +111,10 @@ def cli(
111
):
112
"""SCIM application development CLI."""
113
ctx.ensure_object(dict)
114
+
115
+ if not url:
116
+ raise click.ClickException("No SCIM server URL defined.")
117
118
ctx.obj["URL"] = url
119
120
headers_dict = split_headers(header)
tests/test_cli.py
@@ -15,6 +15,12 @@
15
from scim2_cli import cli
16
17
18
+def test_no_url(runner):
19
+ result = runner.invoke(cli, ["create"])
20
+ assert result.exit_code == 1
21
+ assert "No SCIM server URL defined.\n" in result.output
22
23
24
def test_help(runner):
25
result = runner.invoke(cli, ["--help"])
26
assert result.exit_code == 0
0 commit comments