projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[#3213] ActivityPub: implemented subqueries-based hashtags filtering, removed aggrega...
[akkoma]
/
test
/
pleroma
/
web
/
mastodon_api
/
controllers
/
account_controller_test.exs
diff --git
a/test/pleroma/web/mastodon_api/controllers/account_controller_test.exs
b/test/pleroma/web/mastodon_api/controllers/account_controller_test.exs
index d44b97cc74b0bdd2835a9afd2b48130b44120dab..1276597a4e911a6d6d55fc8960dfa9b50dac3161 100644
(file)
--- a/
test/pleroma/web/mastodon_api/controllers/account_controller_test.exs
+++ b/
test/pleroma/web/mastodon_api/controllers/account_controller_test.exs
@@
-1027,8
+1027,8
@@
defmodule Pleroma.Web.MastodonAPI.AccountControllerTest do
user = Repo.preload(token_from_db, :user).user
assert user
user = Repo.preload(token_from_db, :user).user
assert user
- refute user.confirmation_pending
- refute user.approval_pending
+ assert user.is_confirmed
+ assert user.is_approved
end
test "registers but does not log in with :account_activation_required", %{conn: conn} do
end
test "registers but does not log in with :account_activation_required", %{conn: conn} do
@@
-1088,7
+1088,7
@@
defmodule Pleroma.Web.MastodonAPI.AccountControllerTest do
refute response["token_type"]
user = Repo.get_by(User, email: "lain@example.org")
refute response["token_type"]
user = Repo.get_by(User, email: "lain@example.org")
- assert user.confirmation_pending
+ refute user.is_confirmed
end
test "registers but does not log in with :account_approval_required", %{conn: conn} do
end
test "registers but does not log in with :account_approval_required", %{conn: conn} do
@@
-1150,7
+1150,7
@@
defmodule Pleroma.Web.MastodonAPI.AccountControllerTest do
user = Repo.get_by(User, email: "lain@example.org")
user = Repo.get_by(User, email: "lain@example.org")
- assert user.approval_pending
+ refute user.is_approved
assert user.registration_reason == "I'm a cool dude, bro"
end
assert user.registration_reason == "I'm a cool dude, bro"
end