File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 26
26
with context ('Client.previous' ):
27
27
with it ('should create a new request with the page and call it' ):
28
28
self .response .result = {
29
- 'meta' : {'links' : {'previous' : 'http://f.co?page=1' }}
29
+ 'meta' : {'links' : {'previous' : 'http://f.co?page%5Boffset%5D =1' }}
30
30
}
31
31
32
32
next_response = self .pagination .previous (self .response )
44
44
with context ('Client.next' ):
45
45
with it ('should create a new request with the page and call it' ):
46
46
self .response .result = {
47
- 'meta' : {'links' : {'next' : 'http://f.co?page=1' }}
47
+ 'meta' : {'links' : {'next' : 'http://f.co?page%5Boffset%5D =1' }}
48
48
}
49
49
50
50
next_response = self .pagination .next (self .response )
62
62
with context ('Client.first' ):
63
63
with it ('should create a new request with the page and call it' ):
64
64
self .response .result = {
65
- 'meta' : {'links' : {'first' : 'http://f.co?page=1' }}
65
+ 'meta' : {'links' : {'first' : 'http://f.co?page%5Boffset%5D =1' }}
66
66
}
67
67
68
68
next_response = self .pagination .first (self .response )
81
81
with it ('should create a new request with the page and call it' ):
82
82
self .response .request .params = {'page' : {'offset' : '0' }}
83
83
self .response .result = {
84
- 'meta' : {'links' : {'last' : 'http://f.co?page=1' }}
84
+ 'meta' : {'links' : {'last' : 'http://f.co?page%5Boffset%5D =1' }}
85
85
}
86
86
87
87
next_response = self .pagination .last (self .response )
You can’t perform that action at this time.
0 commit comments