@@ -44,33 +44,33 @@ defmodule GroupherServer.Test.CMS.Hooks.AuditPostComment do
44
44
# assert comment.meta.illegal_words == []
45
45
# end
46
46
47
- test "failed audit should have falied state" , ~m( user post) a do
48
- { :ok , comment } = CMS . create_comment ( :post , post . id , mock_comment ( "世界属于三体" ) , user )
47
+ # test "failed audit should have falied state", ~m(user post)a do
48
+ # {:ok, comment} = CMS.create_comment(:post, post.id, mock_comment("世界属于三体"), user)
49
49
50
- Hooks.Audition . handle_edge ( comment )
50
+ # Hooks.Audition.handle_edge(comment)
51
51
52
- { :ok , comment } = ORM . find ( CMS.Model.Comment , comment . id )
53
- assert comment . pending == @ audit_failed
54
- end
52
+ # {:ok, comment} = ORM.find(CMS.Model.Comment, comment.id)
53
+ # assert comment.pending == @audit_failed
54
+ # end
55
55
56
- test "can handle paged audit failed comments" , ~m( user post) a do
57
- { :ok , comment } = CMS . create_comment ( :post , post . id , mock_comment ( "世界属于三体" ) , user )
58
- CMS . set_article_audit_failed ( comment , % { } )
56
+ # test "can handle paged audit failed comments", ~m(user post)a do
57
+ # {:ok, comment} = CMS.create_comment(:post, post.id, mock_comment("世界属于三体"), user)
58
+ # CMS.set_article_audit_failed(comment, %{})
59
59
60
- { :ok , paged_comments } = CMS . paged_audit_failed_comments ( % { page: 1 , size: 30 } )
61
- assert paged_comments |> is_valid_pagination? ( :raw )
62
- assert paged_comments . total_count == 1
60
+ # {:ok, paged_comments} = CMS.paged_audit_failed_comments(%{page: 1, size: 30})
61
+ # assert paged_comments |> is_valid_pagination?(:raw)
62
+ # assert paged_comments.total_count == 1
63
63
64
- Enum . map ( paged_comments . entries , fn comment ->
65
- Hooks.Audition . handle ( comment )
66
- end )
64
+ # Enum.map(paged_comments.entries, fn comment ->
65
+ # Hooks.Audition.handle(comment)
66
+ # end)
67
67
68
- { :ok , paged_comments } = CMS . paged_audit_failed_comments ( % { page: 1 , size: 30 } )
69
- assert paged_comments . total_count == 0
70
- end
68
+ # {:ok, paged_comments} = CMS.paged_audit_failed_comments(%{page: 1, size: 30})
69
+ # assert paged_comments.total_count == 0
70
+ # end
71
71
72
- test "can handle paged audit failed comments from Scheduler" do
73
- { :ok , _results } = Scheduler . comments_audition ( )
74
- end
72
+ # test "can handle paged audit failed comments from Scheduler" do
73
+ # {:ok, _results} = Scheduler.comments_audition()
74
+ # end
75
75
end
76
76
end
0 commit comments