nanterre: correction au test sur la pagination des doublons (#19592)
This commit is contained in:
parent
ba2470e373
commit
06bbd8726f
|
@ -1,3 +1,4 @@
|
|||
import urlparse
|
||||
import copy
|
||||
|
||||
from django.core.urlresolvers import reverse
|
||||
|
@ -39,7 +40,9 @@ def test_list_doublons(nanterre_classic_family, app):
|
|||
assert response.json['err'] == 0
|
||||
assert 'more' in response.json
|
||||
assert 'cookie' in response.json
|
||||
assert response.json['cookie'] in response.json['more']
|
||||
assert response.json['cookie'] == urlparse.parse_qs(
|
||||
urlparse.urlparse(
|
||||
response.json['more']).query)['cookie'][0]
|
||||
assert len(response.json['data']) >= 10
|
||||
assert response.json['data'][0]['id'] == d.id
|
||||
assert response.json['data'][0]['individu_1']['id'] == first_id
|
||||
|
|
Loading…
Reference in New Issue