Skip to content

Commit ddc2deb

Browse files
Tests updated for pagination fix
1 parent 552026a commit ddc2deb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

specs/mixins/pagination_spec.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
with context('Client.previous'):
2727
with it('should create a new request with the page and call it'):
2828
self.response.result = {
29-
'meta': {'links': {'previous': 'http://f.co?page=1'}}
29+
'meta': {'links': {'previous': 'http://f.co?page%5Boffset%5D=1'}}
3030
}
3131

3232
next_response = self.pagination.previous(self.response)
@@ -44,7 +44,7 @@
4444
with context('Client.next'):
4545
with it('should create a new request with the page and call it'):
4646
self.response.result = {
47-
'meta': {'links': {'next': 'http://f.co?page=1'}}
47+
'meta': {'links': {'next': 'http://f.co?page%5Boffset%5D=1'}}
4848
}
4949

5050
next_response = self.pagination.next(self.response)
@@ -62,7 +62,7 @@
6262
with context('Client.first'):
6363
with it('should create a new request with the page and call it'):
6464
self.response.result = {
65-
'meta': {'links': {'first': 'http://f.co?page=1'}}
65+
'meta': {'links': {'first': 'http://f.co?page%5Boffset%5D=1'}}
6666
}
6767

6868
next_response = self.pagination.first(self.response)
@@ -81,7 +81,7 @@
8181
with it('should create a new request with the page and call it'):
8282
self.response.request.params = {'page': {'offset': '0'}}
8383
self.response.result = {
84-
'meta': {'links': {'last': 'http://f.co?page=1'}}
84+
'meta': {'links': {'last': 'http://f.co?page%5Boffset%5D=1'}}
8585
}
8686

8787
next_response = self.pagination.last(self.response)

0 commit comments

Comments
 (0)