Skip to content

Commit a4549ff

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent a0ebfd3 commit a4549ff

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

aiidalab_launch/__main__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ def remove_profile(ctx, app_state, profile, yes, force, purge):
239239
except ValueError:
240240
raise click.ClickException(f"Profile with name '{profile}' does not exist.")
241241
else:
242-
243242
if not force:
244243
instance = AiidaLabInstance(client=app_state.docker_client, profile=profile)
245244
status = asyncio.run(instance.status())

tests/test_cli.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,15 @@ def test_add_remove_profile():
142142
assert "Profile with name 'new-profile' does not exist." in result.output
143143

144144
# Remove second-profile with reset (`--purge` option)
145-
result: Result = runner.invoke(cli.cli, ["profile", "remove", "--purge", "second-profile"], input="y\nsecond-profile\n")
145+
result: Result = runner.invoke(
146+
cli.cli,
147+
["profile", "remove", "--purge", "second-profile"],
148+
input="y\nsecond-profile\n",
149+
)
146150
assert result.exit_code == 0
147151
assert "Please enter the name of the profile to continue" in result.output
148152

153+
149154
def test_add_profile_invalid_name():
150155
runner: CliRunner = CliRunner()
151156
# underscores are not allowed

0 commit comments

Comments
 (0)