-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It wasn't clear which URL would be what resource, ie. the proposal list view displayed votes and not the proposal detail view. Also changed the tests so that they requested indented responses which will be easier to diff.
- Loading branch information
Showing
7 changed files
with
185 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 16 additions & 1 deletion
17
...esentatives_votes/tests/response_fixtures/RepresentativeManagerTest.test_dossiers/content
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,16 @@ | ||
[{"id":1,"fingerprint":"9e2cccdc5f6d22afd008af8b5b55dc193c27c5d6","title":"Agenda for change: the future of EU development policy","reference":"2012/2002(INI)","text":"","link":"http://www.europarl.europa.eu/oeil/popups/ficheprocedure.do?reference=2012/2002(INI)","url":"http://testserver/api/dossiers/1/?format=json"},{"id":2,"fingerprint":"e6856e0880e701c1022f23d595cc37a9a1cdcca8","title":"2016 general budget: all sections","reference":"2015/2132(BUD)","text":"","link":"http://www.europarl.europa.eu/oeil/popups/ficheprocedure.do?reference=2015/2132(BUD)","url":"http://testserver/api/dossiers/2/?format=json"}] | ||
[ | ||
{ | ||
"title": "Agenda for change: the future of EU development policy", | ||
"reference": "2012/2002(INI)", | ||
"text": "", | ||
"link": "http://www.europarl.europa.eu/oeil/popups/ficheprocedure.do?reference=2012/2002(INI)", | ||
"url": "http://testserver/api/dossiers/1/" | ||
}, | ||
{ | ||
"title": "2016 general budget: all sections", | ||
"reference": "2015/2132(BUD)", | ||
"text": "", | ||
"link": "http://www.europarl.europa.eu/oeil/popups/ficheprocedure.do?reference=2015/2132(BUD)", | ||
"url": "http://testserver/api/dossiers/2/" | ||
} | ||
] |
75 changes: 74 additions & 1 deletion
75
...sentatives_votes/tests/response_fixtures/RepresentativeManagerTest.test_proposals/content
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,74 @@ | ||
[{"id":1,"fingerprint":"6c1fb67feac3ab2ea567b37aa7dfd0d578bc04b4","dossier":"9e2cccdc5f6d22afd008af8b5b55dc193c27c5d6","dossier_title":"Agenda for change: the future of EU development policy","dossier_reference":"2012/2002(INI)","title":"A7-0234/2012 - Charles Goerens - § 31","description":"","reference":"A7-0234/2012","datetime":"2012-10-23T16:31:10Z","kind":"§ 31","total_abstain":2,"total_against":0,"total_for":0,"url":"http://testserver/api/proposals/1/?format=json"},{"id":2,"fingerprint":"18df8a97581832a95f3bdfb8c14ba2b05abb91e9","dossier":"9e2cccdc5f6d22afd008af8b5b55dc193c27c5d6","dossier_title":"Agenda for change: the future of EU development policy","dossier_reference":"2012/2002(INI)","title":"A7-0234/2012 - Charles Goerens - Résolution","description":"","reference":"A7-0234/2012","datetime":"2012-10-23T16:34:32Z","kind":"Résolution","total_abstain":0,"total_against":0,"total_for":2,"url":"http://testserver/api/proposals/2/?format=json"},{"id":3,"fingerprint":"4e575a1bc17602d23d2f0acf8ee482ebe08de79c","dossier":"e6856e0880e701c1022f23d595cc37a9a1cdcca8","dossier_title":"2016 general budget: all sections","dossier_reference":"2015/2132(BUD)","title":"A8-0298/2015 - José Manuel Fernandes et Gérard Deprez - Am 4","description":"","reference":"A8-0298/2015","datetime":"2015-10-28T11:59:35Z","kind":"Am 4","total_abstain":0,"total_against":2,"total_for":0,"url":"http://testserver/api/proposals/3/?format=json"},{"id":4,"fingerprint":"fc786534e832d9af7e2cdcd0b0952d7d60bb4331","dossier":"e6856e0880e701c1022f23d595cc37a9a1cdcca8","dossier_title":"2016 general budget: all sections","dossier_reference":"2015/2132(BUD)","title":"A8-0298/2015 - José Manuel Fernandes et Gérard Deprez - Am 29","description":"","reference":"A8-0298/2015","datetime":"2015-10-28T12:00:12Z","kind":"Am 29","total_abstain":0,"total_against":1,"total_for":1,"url":"http://testserver/api/proposals/4/?format=json"},{"id":5,"fingerprint":"90c022cf70dc6ceff796b876d3e1b814620c8637","dossier":"e6856e0880e701c1022f23d595cc37a9a1cdcca8","dossier_title":"2016 general budget: all sections","dossier_reference":"2015/2132(BUD)","title":"A8-0298/2015 - José Manuel Fernandes et Gérard Deprez - Am 31","description":"","reference":"A8-0298/2015","datetime":"2015-10-28T12:00:42Z","kind":"Am 31","total_abstain":1,"total_against":1,"total_for":0,"url":"http://testserver/api/proposals/5/?format=json"},{"id":6,"fingerprint":"5b3aa46182803c11d70ccfec666234b9fe2f44a7","dossier":"e6856e0880e701c1022f23d595cc37a9a1cdcca8","dossier_title":"2016 general budget: all sections","dossier_reference":"2015/2132(BUD)","title":"A8-0298/2015 - José Manuel Fernandes et Gérard Deprez - Am 30","description":"","reference":"A8-0298/2015","datetime":"2015-10-28T12:01:09Z","kind":"Am 30","total_abstain":0,"total_against":0,"total_for":2,"url":"http://testserver/api/proposals/6/?format=json"}] | ||
[ | ||
{ | ||
"dossier": "http://testserver/api/dossiers/1/", | ||
"title": "A7-0234/2012 - Charles Goerens - § 31", | ||
"description": "", | ||
"reference": "A7-0234/2012", | ||
"datetime": "2012-10-23T16:31:10Z", | ||
"kind": "§ 31", | ||
"total_abstain": 2, | ||
"total_against": 0, | ||
"total_for": 0, | ||
"url": "http://testserver/api/proposals/1/" | ||
}, | ||
{ | ||
"dossier": "http://testserver/api/dossiers/1/", | ||
"title": "A7-0234/2012 - Charles Goerens - Résolution", | ||
"description": "", | ||
"reference": "A7-0234/2012", | ||
"datetime": "2012-10-23T16:34:32Z", | ||
"kind": "Résolution", | ||
"total_abstain": 0, | ||
"total_against": 0, | ||
"total_for": 2, | ||
"url": "http://testserver/api/proposals/2/" | ||
}, | ||
{ | ||
"dossier": "http://testserver/api/dossiers/2/", | ||
"title": "A8-0298/2015 - José Manuel Fernandes et Gérard Deprez - Am 4", | ||
"description": "", | ||
"reference": "A8-0298/2015", | ||
"datetime": "2015-10-28T11:59:35Z", | ||
"kind": "Am 4", | ||
"total_abstain": 0, | ||
"total_against": 2, | ||
"total_for": 0, | ||
"url": "http://testserver/api/proposals/3/" | ||
}, | ||
{ | ||
"dossier": "http://testserver/api/dossiers/2/", | ||
"title": "A8-0298/2015 - José Manuel Fernandes et Gérard Deprez - Am 29", | ||
"description": "", | ||
"reference": "A8-0298/2015", | ||
"datetime": "2015-10-28T12:00:12Z", | ||
"kind": "Am 29", | ||
"total_abstain": 0, | ||
"total_against": 1, | ||
"total_for": 1, | ||
"url": "http://testserver/api/proposals/4/" | ||
}, | ||
{ | ||
"dossier": "http://testserver/api/dossiers/2/", | ||
"title": "A8-0298/2015 - José Manuel Fernandes et Gérard Deprez - Am 31", | ||
"description": "", | ||
"reference": "A8-0298/2015", | ||
"datetime": "2015-10-28T12:00:42Z", | ||
"kind": "Am 31", | ||
"total_abstain": 1, | ||
"total_against": 1, | ||
"total_for": 0, | ||
"url": "http://testserver/api/proposals/5/" | ||
}, | ||
{ | ||
"dossier": "http://testserver/api/dossiers/2/", | ||
"title": "A8-0298/2015 - José Manuel Fernandes et Gérard Deprez - Am 30", | ||
"description": "", | ||
"reference": "A8-0298/2015", | ||
"datetime": "2015-10-28T12:01:09Z", | ||
"kind": "Am 30", | ||
"total_abstain": 0, | ||
"total_against": 0, | ||
"total_for": 2, | ||
"url": "http://testserver/api/proposals/6/" | ||
} | ||
] |
69 changes: 68 additions & 1 deletion
69
representatives_votes/tests/response_fixtures/RepresentativeManagerTest.test_votes/content
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,68 @@ | ||
[{"id":1,"proposal":"6c1fb67feac3ab2ea567b37aa7dfd0d578bc04b4","representative":"314d0f4c25af31bfa2a6b286838367994b902615","representative_name":"","position":"abstain"},{"id":2,"proposal":"6c1fb67feac3ab2ea567b37aa7dfd0d578bc04b4","representative":"2a3c90346d40e9c540050534d832ceb3e0d25a49","representative_name":"","position":"abstain"},{"id":3,"proposal":"18df8a97581832a95f3bdfb8c14ba2b05abb91e9","representative":"314d0f4c25af31bfa2a6b286838367994b902615","representative_name":"","position":"for"},{"id":4,"proposal":"18df8a97581832a95f3bdfb8c14ba2b05abb91e9","representative":"2a3c90346d40e9c540050534d832ceb3e0d25a49","representative_name":"","position":"for"},{"id":5,"proposal":"4e575a1bc17602d23d2f0acf8ee482ebe08de79c","representative":"314d0f4c25af31bfa2a6b286838367994b902615","representative_name":"","position":"against"},{"id":6,"proposal":"4e575a1bc17602d23d2f0acf8ee482ebe08de79c","representative":"2a3c90346d40e9c540050534d832ceb3e0d25a49","representative_name":"","position":"against"},{"id":7,"proposal":"fc786534e832d9af7e2cdcd0b0952d7d60bb4331","representative":"2a3c90346d40e9c540050534d832ceb3e0d25a49","representative_name":"","position":"for"},{"id":8,"proposal":"fc786534e832d9af7e2cdcd0b0952d7d60bb4331","representative":"314d0f4c25af31bfa2a6b286838367994b902615","representative_name":"","position":"against"},{"id":9,"proposal":"90c022cf70dc6ceff796b876d3e1b814620c8637","representative":"2a3c90346d40e9c540050534d832ceb3e0d25a49","representative_name":"","position":"abstain"},{"id":10,"proposal":"90c022cf70dc6ceff796b876d3e1b814620c8637","representative":"314d0f4c25af31bfa2a6b286838367994b902615","representative_name":"","position":"against"},{"id":11,"proposal":"5b3aa46182803c11d70ccfec666234b9fe2f44a7","representative":"2a3c90346d40e9c540050534d832ceb3e0d25a49","representative_name":"","position":"for"}] | ||
[ | ||
{ | ||
"proposal": "http://testserver/api/proposals/1/", | ||
"representative": "http://testserver/api/representatives/2/", | ||
"representative_name": "", | ||
"position": "abstain" | ||
}, | ||
{ | ||
"proposal": "http://testserver/api/proposals/1/", | ||
"representative": "http://testserver/api/representatives/1/", | ||
"representative_name": "", | ||
"position": "abstain" | ||
}, | ||
{ | ||
"proposal": "http://testserver/api/proposals/2/", | ||
"representative": "http://testserver/api/representatives/2/", | ||
"representative_name": "", | ||
"position": "for" | ||
}, | ||
{ | ||
"proposal": "http://testserver/api/proposals/2/", | ||
"representative": "http://testserver/api/representatives/1/", | ||
"representative_name": "", | ||
"position": "for" | ||
}, | ||
{ | ||
"proposal": "http://testserver/api/proposals/3/", | ||
"representative": "http://testserver/api/representatives/2/", | ||
"representative_name": "", | ||
"position": "against" | ||
}, | ||
{ | ||
"proposal": "http://testserver/api/proposals/3/", | ||
"representative": "http://testserver/api/representatives/1/", | ||
"representative_name": "", | ||
"position": "against" | ||
}, | ||
{ | ||
"proposal": "http://testserver/api/proposals/4/", | ||
"representative": "http://testserver/api/representatives/1/", | ||
"representative_name": "", | ||
"position": "for" | ||
}, | ||
{ | ||
"proposal": "http://testserver/api/proposals/4/", | ||
"representative": "http://testserver/api/representatives/2/", | ||
"representative_name": "", | ||
"position": "against" | ||
}, | ||
{ | ||
"proposal": "http://testserver/api/proposals/5/", | ||
"representative": "http://testserver/api/representatives/1/", | ||
"representative_name": "", | ||
"position": "abstain" | ||
}, | ||
{ | ||
"proposal": "http://testserver/api/proposals/5/", | ||
"representative": "http://testserver/api/representatives/2/", | ||
"representative_name": "", | ||
"position": "against" | ||
}, | ||
{ | ||
"proposal": "http://testserver/api/proposals/6/", | ||
"representative": "http://testserver/api/representatives/1/", | ||
"representative_name": "", | ||
"position": "for" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters