mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-25 11:03:58 +03:00
fix tests
This commit is contained in:
parent
495361ef53
commit
344d85c19e
|
@ -56,7 +56,7 @@ type Ship implements Node {
|
|||
|
||||
type ShipConnection {
|
||||
pageInfo: PageInfo!
|
||||
edges: [ShipEdge]
|
||||
edges: [ShipEdge]!
|
||||
}
|
||||
|
||||
type ShipEdge {
|
||||
|
|
|
@ -28,8 +28,9 @@ def test_connection():
|
|||
pageinfo_field = fields['page_info']
|
||||
|
||||
assert isinstance(edge_field, Field)
|
||||
assert isinstance(edge_field.type, List)
|
||||
assert edge_field.type.of_type == MyObjectConnection.Edge
|
||||
assert isinstance(edge_field.type, NonNull)
|
||||
assert isinstance(edge_field.type.of_type, List)
|
||||
assert edge_field.type.of_type.of_type == MyObjectConnection.Edge
|
||||
|
||||
assert isinstance(pageinfo_field, Field)
|
||||
assert isinstance(pageinfo_field.type, NonNull)
|
||||
|
|
Loading…
Reference in New Issue
Block a user