Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit3474f83

Browse files
committed
fix: clean up
1 parent69de83c commit3474f83

File tree

8 files changed

+4
-7
lines changed

8 files changed

+4
-7
lines changed

‎lib/groupher_server_web/schema/cms/cms_metrics.ex‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ defmodule GroupherServerWeb.Schema.CMS.Metrics do
194194
input_object:paged_blogs_filterdo
195195
pagination_args()
196196
article_filter_fields()
197+
field(:sort,:sort_enum)
197198
end
198199

199200
@desc"article_filter doc"

‎test/groupher_server/cms/articles/blog_test.exs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ defmodule GroupherServer.Test.Articles.Blog do
2222
end
2323

2424
describe"[cms blogs curd]"do
25-
@tag:wip
2625
test"can create blog with valid attrs",~m(user community blog_attrs)ado
2726
assert{:error,_}=ORM.find_by(Author,user_id:user.id)
2827
{:ok,blog}=CMS.create_article(community,:blog,blog_attrs,user)

‎test/groupher_server/cms/articles/job_test.exs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ defmodule GroupherServer.Test.Articles.Job do
2323
end
2424

2525
describe"[cms jobs curd]"do
26-
@tag:wip
2726
test"can create job with valid attrs",~m(user community job_attrs)ado
2827
assert{:error,_}=ORM.find_by(Author,user_id:user.id)
2928
{:ok,job}=CMS.create_article(community,:job,job_attrs,user)

‎test/groupher_server/cms/articles/post_test.exs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ defmodule GroupherServer.Test.CMS.Articles.Post do
2323
end
2424

2525
describe"[cms post curd]"do
26-
@tag:wip
2726
test"can create post with valid attrs",~m(user community post_attrs)ado
2827
assert{:error,_}=ORM.find_by(Author,user_id:user.id)
2928
{:ok,post}=CMS.create_article(community,:post,post_attrs,user)

‎test/groupher_server/cms/articles/repo_test.exs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ defmodule GroupherServer.Test.Articles.Repo do
2424
end
2525

2626
describe"[cms repo curd]"do
27-
@tag:wip
2827
test"can create repo with valid attrs",~m(user community repo_attrs)ado
2928
assert{:error,_}=ORM.find_by(Author,user_id:user.id)
3029
{:ok,repo}=CMS.create_article(community,:repo,repo_attrs,user)

‎test/groupher_server_web/mutation/cms/publish_throttle_test.exs‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ defmodule GroupherServer.Test.Mutation.PublishThrottle do
4848
assertcreated|>Map.has_key?("id")
4949
end
5050

51-
@tag:wip
5251
test"user create 2 content with valid inverval time success",~m(community)ado
5352
{:ok,user}=db_insert(:user)
5453
user_conn=simu_conn(:user,user)
@@ -191,7 +190,6 @@ defmodule GroupherServer.Test.Mutation.PublishThrottle do
191190
|>mutation_get_error?(@create_post_query,variables,ecode(:throttle_day))
192191
end
193192

194-
@tag:wip
195193
test"user create multi content with valid day count success in next day",~m(community)ado
196194
{:ok,user}=db_insert(:user)
197195
user_conn=simu_conn(:user,user)

‎test/groupher_server_web/query/cms/articles/post_test.exs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ defmodule GroupherServer.Test.Query.Articles.Post do
2727
}
2828
}
2929
"""
30-
@tag:wip
30+
3131
test"basic graphql query on post with logined user",
3232
~m(user_conn community user post_attrs)ado
3333
{:ok,post}=CMS.create_article(community,:post,post_attrs,user)

‎test/groupher_server_web/query/cms/paged_articles/paged_blogs_test.exs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ defmodule GroupherServer.Test.Query.PagedArticles.PagedBlogs do
7676
assertresults["entries"]|>List.first()|>Map.get("articleTags")|>is_list
7777
end
7878

79+
7980
test"should get valid thread document",~m(guest_conn)ado
8081
{:ok,user}=db_insert(:user)
8182
{:ok,community}=db_insert(:community)
@@ -314,6 +315,7 @@ defmodule GroupherServer.Test.Query.PagedArticles.PagedBlogs do
314315
}
315316
}
316317
"""
318+
317319
test"filter sort MOST_VIEWS should work",~m(guest_conn)ado
318320
most_views_blog=Blog|>order_by(desc::views)|>limit(1)|>Repo.one()
319321
variables=%{filter:%{sort:"MOST_VIEWS"}}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp