Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit ec537cd

Browse files
committed
chore(clean up): rm wip tags tests
1 parent 206ef64 commit ec537cd

File tree

6 files changed

+0
-27
lines changed

6 files changed

+0
-27
lines changed

test/mastani_server/cms/cms_test.exs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ defmodule MastaniServer.Test.CMS do
7070
assert updated.title == "new title"
7171
end
7272

73-
@tag :wip
7473
test "update title to existing title fails", ~m(user)a do
7574
valid_attrs = mock_attrs(:category, %{user_id: user.id})
7675
~m(title raw)a = valid_attrs
@@ -83,7 +82,6 @@ defmodule MastaniServer.Test.CMS do
8382
{:error, _} = CMS.update_category(%Category{id: category.id, title: category2.title})
8483
end
8584

86-
@tag :wip
8785
test "can set a category to a community", ~m(community category)a do
8886
{:ok, _} = CMS.set_category(community, category)
8987

@@ -97,7 +95,6 @@ defmodule MastaniServer.Test.CMS do
9795
assert community.id in assoc_communities
9896
end
9997

100-
@tag :wip
10198
test "can unset a category to a community", ~m(community category)a do
10299
{:ok, _} = CMS.set_category(community, category)
103100
CMS.unset_category(community, category)
@@ -167,7 +164,6 @@ defmodule MastaniServer.Test.CMS do
167164
assert {:error, _error} = CMS.create_thread(~m(title raw)a)
168165
end
169166

170-
@tag :wip
171167
test "can set a thread to community", ~m(community)a do
172168
title = "POST"
173169
raw = title
@@ -181,7 +177,6 @@ defmodule MastaniServer.Test.CMS do
181177
describe "[cms community editors]" do
182178
alias CMS.{Community, CommunityEditor}
183179

184-
@tag :wip
185180
test "can add editor to a community, editor has default passport", ~m(user community)a do
186181
title = "chief editor"
187182

test/mastani_server_web/mutation/cms/cms_test.exs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,6 @@ defmodule MastaniServer.Test.Mutation.CMS.Basic do
541541
}
542542
}
543543
"""
544-
@tag :wip
545544
test "auth user can remove thread from community", ~m(user community thread)a do
546545
CMS.set_thread(community, thread)
547546
{:ok, found_community} = Community |> ORM.find(community.id, preload: :threads)

test/mastani_server_web/mutation/cms/job_test.exs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ defmodule MastaniServer.Test.Mutation.Job do
180180
assert updated["salary"] == variables.salary
181181
end
182182

183-
@tag :wip
184183
test "job can be update along with tags(city)", ~m(owner_conn user job)a do
185184
unique_num = System.unique_integer([:positive, :monotonic])
186185

@@ -199,7 +198,6 @@ defmodule MastaniServer.Test.Mutation.Job do
199198
assert updated["tags"] |> Enum.any?(&(&1["id"] == to_string(tag.id)))
200199
end
201200

202-
@tag :wip
203201
test "update job tags will replace old city-tags", ~m(owner_conn user job)a do
204202
unique_num = System.unique_integer([:positive, :monotonic])
205203

@@ -299,7 +297,6 @@ defmodule MastaniServer.Test.Mutation.Job do
299297
}
300298
}
301299
"""
302-
@tag :wip
303300
test "auth user can set a valid tag to job", ~m(job)a do
304301
{:ok, community} = db_insert(:community)
305302
{:ok, tag} = db_insert(:tag, %{thread: "job", community: community})
@@ -315,7 +312,6 @@ defmodule MastaniServer.Test.Mutation.Job do
315312
assert tag.id in assoc_tags
316313
end
317314

318-
@tag :wip
319315
test "can not set refined tag to job", ~m(job)a do
320316
{:ok, community} = db_insert(:community)
321317
{:ok, tag} = db_insert(:tag, %{thread: "job", community: community, title: "refined"})
@@ -328,7 +324,6 @@ defmodule MastaniServer.Test.Mutation.Job do
328324
assert rule_conn |> mutation_get_error?(@set_tag_query, variables)
329325
end
330326

331-
@tag :wip
332327
test "auth user can set refined tag to job", ~m(job)a do
333328
{:ok, community} = db_insert(:community)
334329
{:ok, tag} = db_insert(:tag, %{thread: "job", community: community, title: "refined"})
@@ -385,7 +380,6 @@ defmodule MastaniServer.Test.Mutation.Job do
385380
}
386381
}
387382
"""
388-
@tag :wip
389383
test "can unset refined tag to a job", ~m(job)a do
390384
{:ok, community} = db_insert(:community)
391385
{:ok, tag} = db_insert(:tag, %{thread: "job", community: community, title: "refined"})

test/mastani_server_web/mutation/cms/post_test.exs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,6 @@ defmodule MastaniServer.Test.Mutation.Post do
257257
}
258258
}
259259
"""
260-
@tag :wip
261260
test "auth user can set a valid tag to post", ~m(post)a do
262261
{:ok, community} = db_insert(:community)
263262
{:ok, tag} = db_insert(:tag, %{thread: "post", community: community})
@@ -273,7 +272,6 @@ defmodule MastaniServer.Test.Mutation.Post do
273272
assert tag.id in assoc_tags
274273
end
275274

276-
@tag :wip
277275
test "can not set refined tag to post", ~m(post)a do
278276
{:ok, community} = db_insert(:community)
279277
{:ok, tag} = db_insert(:tag, %{thread: "post", community: community, title: "refined"})
@@ -286,7 +284,6 @@ defmodule MastaniServer.Test.Mutation.Post do
286284
assert rule_conn |> mutation_get_error?(@set_tag_query, variables)
287285
end
288286

289-
@tag :wip
290287
test "auth user can set refined tag to post", ~m(post)a do
291288
{:ok, community} = db_insert(:community)
292289
{:ok, tag} = db_insert(:tag, %{thread: "post", community: community, title: "refined"})
@@ -302,7 +299,6 @@ defmodule MastaniServer.Test.Mutation.Post do
302299
assert tag.id in assoc_tags
303300
end
304301

305-
@tag :wip
306302
test "auth user can set refined tag to post of spec topic", ~m(post)a do
307303
{:ok, community} = db_insert(:community)
308304
{:ok, user} = db_insert(:user)
@@ -405,7 +401,6 @@ defmodule MastaniServer.Test.Mutation.Post do
405401
assert tag2.id in assoc_tags
406402
end
407403

408-
@tag :wip
409404
test "can unset refined tag to a post", ~m(post)a do
410405
{:ok, community} = db_insert(:community)
411406
{:ok, tag} = db_insert(:tag, %{thread: "post", community: community, title: "refined"})
@@ -425,7 +420,6 @@ defmodule MastaniServer.Test.Mutation.Post do
425420
assert tag.id not in assoc_tags
426421
end
427422

428-
@tag :wip
429423
test "can unset refined tag to a post of spec topic", ~m(post)a do
430424
{:ok, community} = db_insert(:community)
431425
{:ok, user} = db_insert(:user)

test/mastani_server_web/mutation/cms/video_test.exs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ defmodule MastaniServer.Test.Mutation.Video do
162162
}
163163
}
164164
"""
165-
@tag :wip
166165
test "auth user can set a valid tag to video", ~m(video)a do
167166
{:ok, community} = db_insert(:community)
168167
{:ok, tag} = db_insert(:tag, %{thread: "video", community: community})
@@ -178,7 +177,6 @@ defmodule MastaniServer.Test.Mutation.Video do
178177
assert tag.id in assoc_tags
179178
end
180179

181-
@tag :wip
182180
test "can not set refined tag to video", ~m(video)a do
183181
{:ok, community} = db_insert(:community)
184182
{:ok, tag} = db_insert(:tag, %{thread: "video", community: community, title: "refined"})
@@ -191,7 +189,6 @@ defmodule MastaniServer.Test.Mutation.Video do
191189
assert rule_conn |> mutation_get_error?(@set_tag_query, variables)
192190
end
193191

194-
@tag :wip
195192
test "auth user can set refined tag to video", ~m(video)a do
196193
{:ok, community} = db_insert(:community)
197194
{:ok, tag} = db_insert(:tag, %{thread: "video", community: community, title: "refined"})
@@ -207,7 +204,6 @@ defmodule MastaniServer.Test.Mutation.Video do
207204
assert tag.id in assoc_tags
208205
end
209206

210-
@tag :wip
211207
test "can set multi tag to a video", ~m(video)a do
212208
{:ok, community} = db_insert(:community)
213209
{:ok, tag} = db_insert(:tag, %{community: community, thread: "video"})
@@ -237,7 +233,6 @@ defmodule MastaniServer.Test.Mutation.Video do
237233
}
238234
}
239235
"""
240-
@tag :wip
241236
test "can unset refined tag to a video", ~m(video)a do
242237
{:ok, community} = db_insert(:community)
243238
{:ok, tag} = db_insert(:tag, %{thread: "video", community: community, title: "refined"})

test/mastani_server_web/query/cms/cms_test.exs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ defmodule MastaniServer.Test.Query.CMS.Basic do
4141
assert results["id"] == aka_results["id"]
4242
end
4343

44-
@tag :wip
4544
test "can get threads count ", ~m(community guest_conn)a do
4645
{:ok, threads} = db_insert_multi(:thread, 5)
4746

@@ -55,7 +54,6 @@ defmodule MastaniServer.Test.Query.CMS.Basic do
5554
assert results["threadsCount"] == 5
5655
end
5756

58-
@tag :wip
5957
test "can get tags count ", ~m(community guest_conn user)a do
6058
{:ok, _tags} = db_insert_multi(:tag, 5)
6159

@@ -68,7 +66,6 @@ defmodule MastaniServer.Test.Query.CMS.Basic do
6866
assert results["tagsCount"] == 2
6967
end
7068

71-
@tag :wip
7269
test "guest use get community threads with default asc sort index",
7370
~m(guest_conn community)a do
7471
{:ok, threads} = db_insert_multi(:thread, 5)
@@ -285,7 +282,6 @@ defmodule MastaniServer.Test.Query.CMS.Basic do
285282
}
286283
}
287284
"""
288-
@tag :wip
289285
test "guest user can get paged tags", ~m(guest_conn community user)a do
290286
variables = %{filter: %{page: 1, size: 10}}
291287

0 commit comments

Comments
 (0)