From 32c59096864806f6f6601369897e5d3bc6f8abd5 Mon Sep 17 00:00:00 2001 From: Maksim Pechnikov Date: Fri, 13 Nov 2020 15:30:37 +0300 Subject: [PATCH] update test --- test/pleroma/user_test.exs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/test/pleroma/user_test.exs b/test/pleroma/user_test.exs index e0f66a74b..2e485d02c 100644 --- a/test/pleroma/user_test.exs +++ b/test/pleroma/user_test.exs @@ -1610,8 +1610,6 @@ defmodule Pleroma.UserTest do end test "delete/1 purges a user when they wouldn't be fully deleted" do - _tag = insert(:tag, name: "verify") - user = insert(:user, %{ bio: "eyy lmao", @@ -1620,7 +1618,7 @@ defmodule Pleroma.UserTest do keys: "RSA begin buplic key", public_key: "--PRIVATE KEYE--", avatar: %{"a" => "b"}, - # tags: ["qqqqq"], + tags: [build(:tag, name: "verify")], banner: %{"a" => "b"}, background: %{"a" => "b"}, note_count: 9, @@ -1647,7 +1645,6 @@ defmodule Pleroma.UserTest do also_known_as: ["https://lol.olo/users/loll"] }) - user = User.tag(user, "verify") assert Enum.map(user.tags, & &1.name) == ["verify"] assert Repo.aggregate(from(ut in "users_tags"), :count, :user_id) == 1 {:ok, job} = User.delete(user)