@@ -620,9 +620,9 @@ class Query(graphene.ObjectType):
620
620
621
621
result = schema .execute (query )
622
622
assert len (result .errors ) == 1
623
- assert str (result .errors [0 ]) == (
623
+ assert str (result .errors [0 ]). startswith (
624
624
"You must provide a `first` or `last` value to properly "
625
- "paginate the `allReporters` connection."
625
+ "paginate the `allReporters` connection.\n "
626
626
)
627
627
assert result .data == expected
628
628
@@ -659,9 +659,9 @@ class Query(graphene.ObjectType):
659
659
660
660
result = schema .execute (query )
661
661
assert len (result .errors ) == 1
662
- assert str (result .errors [0 ]) == (
662
+ assert str (result .errors [0 ]). startswith (
663
663
"Requesting 101 records on the `allReporters` connection "
664
- "exceeds the `first` limit of 100 records."
664
+ "exceeds the `first` limit of 100 records.\n "
665
665
)
666
666
assert result .data == expected
667
667
@@ -700,9 +700,9 @@ class Query(graphene.ObjectType):
700
700
701
701
result = schema .execute (query )
702
702
assert len (result .errors ) == 1
703
- assert str (result .errors [0 ]) == (
703
+ assert str (result .errors [0 ]). startswith (
704
704
"Requesting 101 records on the `allReporters` connection "
705
- "exceeds the `last` limit of 100 records."
705
+ "exceeds the `last` limit of 100 records.\n "
706
706
)
707
707
assert result .data == expected
708
708
0 commit comments