{"action":"created","comment":{"url":"https://api.github.com/repos/CanalTP/navitia/pulls/comments/100834922","pull_request_review_id":21549962,"id":100834922,"diff_hunk":"@@ -263,3 +264,40 @@ def http_get(url, *args, **kwargs):\n             return MockResponse({}, 200, '')\n         with mock.patch('requests.get', http_get) as mock_method:\n             self.query_region('places?q=bob&type[]=stop_point&type[]=address')\n+\n+\n+@dataset({\"main_routing_test\": {}})\n+class TestBragiShape(AbstractTestFixture):\n+    def test_places_for_user_with_shape(self):\n+        \"\"\"\n+        Test that with a shape on user, it is correctly posted\n+        \"\"\"\n+        with user_set(app, \"test_user_with_shape\"):\n+            def http_get(url, *args, **kwargs):\n+                assert False\n+\n+            def http_post(url, *args, **kwargs):\n+                json = kwargs.pop('json')\n+                assert json.get('geometry')\n+                return MockResponse({}, 200, '{}')\n+\n+            with mock.patch('requests.get', http_get) as mock_method:\n+                with mock.patch('requests.post', http_post) as mock_method:\n+                    self.query('v1/coverage/main_routing_test/places?q=toto&_autocomplete=bragi')","path":"source/jormungandr/tests/bragi_autocomplete_tests.py","position":36,"original_position":36,"commit_id":"4bd63d6ebee3d3986dd30fcc4d3bc0ef42b35175","original_commit_id":"4bd63d6ebee3d3986dd30fcc4d3bc0ef42b35175","user":{"login":"antoine-de","id":3987698,"avatar_url":"https://avatars.githubusercontent.com/u/3987698?v=3","gravatar_id":"","url":"https://api.github.com/users/antoine-de","html_url":"https://github.com/antoine-de","followers_url":"https://api.github.com/users/antoine-de/followers","following_url":"https://api.github.com/users/antoine-de/following{/other_user}","gists_url":"https://api.github.com/users/antoine-de/gists{/gist_id}","starred_url":"https://api.github.com/users/antoine-de/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antoine-de/subscriptions","organizations_url":"https://api.github.com/users/antoine-de/orgs","repos_url":"https://api.github.com/users/antoine-de/repos","events_url":"https://api.github.com/users/antoine-de/events{/privacy}","received_events_url":"https://api.github.com/users/antoine-de/received_events","type":"User","site_admin":false},"body":"can you add a boolean to assert (or a custom `mock` function) that the http_post method as bee used ?","created_at":"2017-02-13T16:30:39Z","updated_at":"2017-02-13T16:30:54Z","html_url":"https://github.com/CanalTP/navitia/pull/1975#discussion_r100834922","pull_request_url":"https://api.github.com/repos/CanalTP/navitia/pulls/1975","_links":{"self":{"href":"https://api.github.com/repos/CanalTP/navitia/pulls/comments/100834922"},"html":{"href":"https://github.com/CanalTP/navitia/pull/1975#discussion_r100834922"},"pull_request":{"href":"https://api.github.com/repos/CanalTP/navitia/pulls/1975"}}},"pull_request":{"url":"https://api.github.com/repos/CanalTP/navitia/pulls/1975","id":105632508,"html_url":"https://github.com/CanalTP/navitia/pull/1975","diff_url":"https://github.com/CanalTP/navitia/pull/1975.diff","patch_url":"https://github.com/CanalTP/navitia/pull/1975.patch","issue_url":"https://api.github.com/repos/CanalTP/navitia/issues/1975","number":1975,"state":"open","locked":false,"title":"jormungandr: use user shape on instance autocomplete","user":{"login":"patochectp","id":5518992,"avatar_url":"https://avatars.githubusercontent.com/u/5518992?v=3","gravatar_id":"","url":"https://api.github.com/users/patochectp","html_url":"https://github.com/patochectp","followers_url":"https://api.github.com/users/patochectp/followers","following_url":"https://api.github.com/users/patochectp/following{/other_user}","gists_url":"https://api.github.com/users/patochectp/gists{/gist_id}","starred_url":"https://api.github.com/users/patochectp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patochectp/subscriptions","organizations_url":"https://api.github.com/users/patochectp/orgs","repos_url":"https://api.github.com/users/patochectp/repos","events_url":"https://api.github.com/users/patochectp/events{/privacy}","received_events_url":"https://api.github.com/users/patochectp/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-02-10T13:57:43Z","updated_at":"2017-02-13T16:30:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e7fa8a0843a5b2f14dfce4cc0c31ba97aba39e58","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/CanalTP/navitia/pulls/1975/commits","review_comments_url":"https://api.github.com/repos/CanalTP/navitia/pulls/1975/comments","review_comment_url":"https://api.github.com/repos/CanalTP/navitia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CanalTP/navitia/issues/1975/comments","statuses_url":"https://api.github.com/repos/CanalTP/navitia/statuses/4bd63d6ebee3d3986dd30fcc4d3bc0ef42b35175","head":{"label":"patochectp:use_autocomplete_shape_on_instance_","ref":"use_autocomplete_shape_on_instance_","sha":"4bd63d6ebee3d3986dd30fcc4d3bc0ef42b35175","user":{"login":"patochectp","id":5518992,"avatar_url":"https://avatars.githubusercontent.com/u/5518992?v=3","gravatar_id":"","url":"https://api.github.com/users/patochectp","html_url":"https://github.com/patochectp","followers_url":"https://api.github.com/users/patochectp/followers","following_url":"https://api.github.com/users/patochectp/following{/other_user}","gists_url":"https://api.github.com/users/patochectp/gists{/gist_id}","starred_url":"https://api.github.com/users/patochectp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patochectp/subscriptions","organizations_url":"https://api.github.com/users/patochectp/orgs","repos_url":"https://api.github.com/users/patochectp/repos","events_url":"https://api.github.com/users/patochectp/events{/privacy}","received_events_url":"https://api.github.com/users/patochectp/received_events","type":"User","site_admin":false},"repo":{"id":19779959,"name":"navitia","full_name":"patochectp/navitia","owner":{"login":"patochectp","id":5518992,"avatar_url":"https://avatars.githubusercontent.com/u/5518992?v=3","gravatar_id":"","url":"https://api.github.com/users/patochectp","html_url":"https://github.com/patochectp","followers_url":"https://api.github.com/users/patochectp/followers","following_url":"https://api.github.com/users/patochectp/following{/other_user}","gists_url":"https://api.github.com/users/patochectp/gists{/gist_id}","starred_url":"https://api.github.com/users/patochectp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patochectp/subscriptions","organizations_url":"https://api.github.com/users/patochectp/orgs","repos_url":"https://api.github.com/users/patochectp/repos","events_url":"https://api.github.com/users/patochectp/events{/privacy}","received_events_url":"https://api.github.com/users/patochectp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/patochectp/navitia","description":"The REST API to build cool stuff with public transport","fork":true,"url":"https://api.github.com/repos/patochectp/navitia","forks_url":"https://api.github.com/repos/patochectp/navitia/forks","keys_url":"https://api.github.com/repos/patochectp/navitia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/patochectp/navitia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/patochectp/navitia/teams","hooks_url":"https://api.github.com/repos/patochectp/navitia/hooks","issue_events_url":"https://api.github.com/repos/patochectp/navitia/issues/events{/number}","events_url":"https://api.github.com/repos/patochectp/navitia/events","assignees_url":"https://api.github.com/repos/patochectp/navitia/assignees{/user}","branches_url":"https://api.github.com/repos/patochectp/navitia/branches{/branch}","tags_url":"https://api.github.com/repos/patochectp/navitia/tags","blobs_url":"https://api.github.com/repos/patochectp/navitia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/patochectp/navitia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/patochectp/navitia/git/refs{/sha}","trees_url":"https://api.github.com/repos/patochectp/navitia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/patochectp/navitia/statuses/{sha}","languages_url":"https://api.github.com/repos/patochectp/navitia/languages","stargazers_url":"https://api.github.com/repos/patochectp/navitia/stargazers","contributors_url":"https://api.github.com/repos/patochectp/navitia/contributors","subscribers_url":"https://api.github.com/repos/patochectp/navitia/subscribers","subscription_url":"https://api.github.com/repos/patochectp/navitia/subscription","commits_url":"https://api.github.com/repos/patochectp/navitia/commits{/sha}","git_commits_url":"https://api.github.com/repos/patochectp/navitia/git/commits{/sha}","comments_url":"https://api.github.com/repos/patochectp/navitia/comments{/number}","issue_comment_url":"https://api.github.com/repos/patochectp/navitia/issues/comments{/number}","contents_url":"https://api.github.com/repos/patochectp/navitia/contents/{+path}","compare_url":"https://api.github.com/repos/patochectp/navitia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/patochectp/navitia/merges","archive_url":"https://api.github.com/repos/patochectp/navitia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/patochectp/navitia/downloads","issues_url":"https://api.github.com/repos/patochectp/navitia/issues{/number}","pulls_url":"https://api.github.com/repos/patochectp/navitia/pulls{/number}","milestones_url":"https://api.github.com/repos/patochectp/navitia/milestones{/number}","notifications_url":"https://api.github.com/repos/patochectp/navitia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/patochectp/navitia/labels{/name}","releases_url":"https://api.github.com/repos/patochectp/navitia/releases{/id}","deployments_url":"https://api.github.com/repos/patochectp/navitia/deployments","created_at":"2014-05-14T13:13:53Z","updated_at":"2016-09-28T09:37:17Z","pushed_at":"2017-02-13T16:01:49Z","git_url":"git://github.com/patochectp/navitia.git","ssh_url":"git@github.com:patochectp/navitia.git","clone_url":"https://github.com/patochectp/navitia.git","svn_url":"https://github.com/patochectp/navitia","homepage":"http://www.navitia.io","size":34520,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"CanalTP:dev","ref":"dev","sha":"f09830e7ac3f417b082f008f41dab7b315ee5188","user":{"login":"CanalTP","id":2743985,"avatar_url":"https://avatars.githubusercontent.com/u/2743985?v=3","gravatar_id":"","url":"https://api.github.com/users/CanalTP","html_url":"https://github.com/CanalTP","followers_url":"https://api.github.com/users/CanalTP/followers","following_url":"https://api.github.com/users/CanalTP/following{/other_user}","gists_url":"https://api.github.com/users/CanalTP/gists{/gist_id}","starred_url":"https://api.github.com/users/CanalTP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CanalTP/subscriptions","organizations_url":"https://api.github.com/users/CanalTP/orgs","repos_url":"https://api.github.com/users/CanalTP/repos","events_url":"https://api.github.com/users/CanalTP/events{/privacy}","received_events_url":"https://api.github.com/users/CanalTP/received_events","type":"Organization","site_admin":false},"repo":{"id":10797333,"name":"navitia","full_name":"CanalTP/navitia","owner":{"login":"CanalTP","id":2743985,"avatar_url":"https://avatars.githubusercontent.com/u/2743985?v=3","gravatar_id":"","url":"https://api.github.com/users/CanalTP","html_url":"https://github.com/CanalTP","followers_url":"https://api.github.com/users/CanalTP/followers","following_url":"https://api.github.com/users/CanalTP/following{/other_user}","gists_url":"https://api.github.com/users/CanalTP/gists{/gist_id}","starred_url":"https://api.github.com/users/CanalTP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CanalTP/subscriptions","organizations_url":"https://api.github.com/users/CanalTP/orgs","repos_url":"https://api.github.com/users/CanalTP/repos","events_url":"https://api.github.com/users/CanalTP/events{/privacy}","received_events_url":"https://api.github.com/users/CanalTP/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CanalTP/navitia","description":"The open source software to build cool stuff with locomotion","fork":false,"url":"https://api.github.com/repos/CanalTP/navitia","forks_url":"https://api.github.com/repos/CanalTP/navitia/forks","keys_url":"https://api.github.com/repos/CanalTP/navitia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CanalTP/navitia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CanalTP/navitia/teams","hooks_url":"https://api.github.com/repos/CanalTP/navitia/hooks","issue_events_url":"https://api.github.com/repos/CanalTP/navitia/issues/events{/number}","events_url":"https://api.github.com/repos/CanalTP/navitia/events","assignees_url":"https://api.github.com/repos/CanalTP/navitia/assignees{/user}","branches_url":"https://api.github.com/repos/CanalTP/navitia/branches{/branch}","tags_url":"https://api.github.com/repos/CanalTP/navitia/tags","blobs_url":"https://api.github.com/repos/CanalTP/navitia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CanalTP/navitia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CanalTP/navitia/git/refs{/sha}","trees_url":"https://api.github.com/repos/CanalTP/navitia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CanalTP/navitia/statuses/{sha}","languages_url":"https://api.github.com/repos/CanalTP/navitia/languages","stargazers_url":"https://api.github.com/repos/CanalTP/navitia/stargazers","contributors_url":"https://api.github.com/repos/CanalTP/navitia/contributors","subscribers_url":"https://api.github.com/repos/CanalTP/navitia/subscribers","subscription_url":"https://api.github.com/repos/CanalTP/navitia/subscription","commits_url":"https://api.github.com/repos/CanalTP/navitia/commits{/sha}","git_commits_url":"https://api.github.com/repos/CanalTP/navitia/git/commits{/sha}","comments_url":"https://api.github.com/repos/CanalTP/navitia/comments{/number}","issue_comment_url":"https://api.github.com/repos/CanalTP/navitia/issues/comments{/number}","contents_url":"https://api.github.com/repos/CanalTP/navitia/contents/{+path}","compare_url":"https://api.github.com/repos/CanalTP/navitia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CanalTP/navitia/merges","archive_url":"https://api.github.com/repos/CanalTP/navitia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CanalTP/navitia/downloads","issues_url":"https://api.github.com/repos/CanalTP/navitia/issues{/number}","pulls_url":"https://api.github.com/repos/CanalTP/navitia/pulls{/number}","milestones_url":"https://api.github.com/repos/CanalTP/navitia/milestones{/number}","notifications_url":"https://api.github.com/repos/CanalTP/navitia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CanalTP/navitia/labels{/name}","releases_url":"https://api.github.com/repos/CanalTP/navitia/releases{/id}","deployments_url":"https://api.github.com/repos/CanalTP/navitia/deployments","created_at":"2013-06-19T15:34:30Z","updated_at":"2017-02-02T07:00:21Z","pushed_at":"2017-02-13T16:01:50Z","git_url":"git://github.com/CanalTP/navitia.git","ssh_url":"git@github.com:CanalTP/navitia.git","clone_url":"https://github.com/CanalTP/navitia.git","svn_url":"https://github.com/CanalTP/navitia","homepage":"http://www.navitia.io","size":35462,"stargazers_count":197,"watchers_count":197,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":69,"mirror_url":null,"open_issues_count":34,"forks":69,"open_issues":34,"watchers":197,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/CanalTP/navitia/pulls/1975"},"html":{"href":"https://github.com/CanalTP/navitia/pull/1975"},"issue":{"href":"https://api.github.com/repos/CanalTP/navitia/issues/1975"},"comments":{"href":"https://api.github.com/repos/CanalTP/navitia/issues/1975/comments"},"review_comments":{"href":"https://api.github.com/repos/CanalTP/navitia/pulls/1975/comments"},"review_comment":{"href":"https://api.github.com/repos/CanalTP/navitia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CanalTP/navitia/pulls/1975/commits"},"statuses":{"href":"https://api.github.com/repos/CanalTP/navitia/statuses/4bd63d6ebee3d3986dd30fcc4d3bc0ef42b35175"}}}}
{"actor":{"display_login":"antoine-de"}}