mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-04-23 02:22:08 +03:00
Check article headline and reformat
This commit is contained in:
parent
472dc581f0
commit
123aacdfbe
|
@ -892,6 +892,7 @@ def test_filter_filterset_based_on_mixin():
|
|||
allArticles(viewer_Email_In: "%s") {
|
||||
edges {
|
||||
node {
|
||||
headline
|
||||
viewer {
|
||||
email
|
||||
}
|
||||
|
@ -904,7 +905,16 @@ def test_filter_filterset_based_on_mixin():
|
|||
)
|
||||
|
||||
expected = {
|
||||
"allArticles": {"edges": [{"node": {"viewer": {"email": reporter_1.email}}}]}
|
||||
"allArticles": {
|
||||
"edges": [
|
||||
{
|
||||
"node": {
|
||||
"headline": article_1.headline,
|
||||
"viewer": {"email": reporter_1.email},
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
result = schema.execute(query)
|
||||
|
|
Loading…
Reference in New Issue
Block a user