Skip to content

Commit

Permalink
Black!
Browse files Browse the repository at this point in the history
  • Loading branch information
dotsdl committed Aug 24, 2023
1 parent e4f30d0 commit be0cc7f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion alchemiscale/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,9 @@ def key(func):


def scope(func):
scope = click.option("--scope", "-s", help="scope", required=True, type=str, multiple=True)
scope = click.option(
"--scope", "-s", help="scope", required=True, type=str, multiple=True
)
return scope(func)


Expand Down
8 changes: 6 additions & 2 deletions alchemiscale/tests/integration/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,8 +529,12 @@ def test_scope_add(n4js_fresh):
assert click_success(result)
scopes = n4js.list_scopes("bill", CredentialedUserIdentity)
assert len(scopes) == 2
assert set(scopes) == set([Scope.from_str("org1-campaign2-project3"),
Scope.from_str("org1-campaign2-project4")])
assert set(scopes) == set(
[
Scope.from_str("org1-campaign2-project3"),
Scope.from_str("org1-campaign2-project4"),
]
)


def test_scope_remove(n4js_fresh):
Expand Down

0 comments on commit be0cc7f

Please sign in to comment.