Merge branch 'fix-user-clitests' into 'main'

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

See merge request framasoft/mobilizon!1438
This commit is contained in:
Thomas Citharel
2023-08-23 06:26:13 +00:00
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