@@ -54,34 +54,6 @@ defmodule GroupherServer.Test.Seeds.Communities do
54
54
assert length ( found . threads ) == 7
55
55
end
56
56
57
- #
58
- # test "seeded general community has general tags" do
59
- # CMS.seed_communities(:pl)
60
- # {:ok, results} = ORM.find_all(CMS.Community, %{page: 1, size: 20})
61
- # radom_community = results.entries |> Enum.random()
62
-
63
- # # test post threads
64
- # {:ok, random_community} = ORM.find(CMS.Community, radom_community.id)
65
- # {:ok, tags} = CMS.paged_article_tags(%{community_id: random_community.id}, :post)
66
- # found_tags = tags |> Utils.pick_by(:title)
67
- # config_tags = SeedsConfig.tags(:post) |> Utils.pick_by(:title)
68
- # assert found_tags |> Enum.sort() == config_tags |> Enum.sort()
69
-
70
- # # test job threads
71
- # {:ok, random_community} = ORM.find(CMS.Community, radom_community.id)
72
- # {:ok, tags} = CMS.paged_article_tags(%{community_id: random_community.id}, :job)
73
- # found_tags = tags |> Utils.pick_by(:title)
74
- # config_tags = SeedsConfig.tags(:job) |> Utils.pick_by(:title)
75
- # assert found_tags |> Enum.sort() == config_tags |> Enum.sort()
76
-
77
- # # test repo threads
78
- # {:ok, random_community} = ORM.find(CMS.Community, radom_community.id)
79
- # {:ok, tags} = CMS.paged_article_tags(%{community_id: random_community.id}, :repo)
80
- # found_tags = tags |> Utils.pick_by(:title)
81
- # config_tags = SeedsConfig.tags(:repo) |> Utils.pick_by(:title)
82
- # assert found_tags |> Enum.sort() == config_tags |> Enum.sort()
83
- # end
84
-
85
57
test "seeded home community has home-spec tags" do
86
58
CMS . seed_communities ( :home )
87
59
0 commit comments