test: fix user deletion CLI tests and bring back the -k option

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2023-08-23 08:23:03 +02:00
parent 860b4eb9a3
commit d2490f9304
2 changed files with 9 additions and 4 deletions

View File

@@ -204,7 +204,7 @@ defmodule Mix.Tasks.Mobilizon.UsersTest do
test "delete non-existing user" do
Delete.run([@email, "-y"])
assert_received {:mix_shell, :error, [message]}
assert message =~ "Error: No such user"
assert message == "No user with the email \"#{@email}\" was found"
end
end