fix tests

This commit is contained in:
Eran Kampf 2016-10-27 10:35:31 -07:00
parent 495361ef53
commit 344d85c19e
2 changed files with 4 additions and 3 deletions

View File

@ -56,7 +56,7 @@ type Ship implements Node {
type ShipConnection {
pageInfo: PageInfo!
edges: [ShipEdge]
edges: [ShipEdge]!
}
type ShipEdge {

View File

@ -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)