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