{"action":"created","comment":{"url":"https://api.github.com/repos/geomstats/geomstats/pulls/comments/239614278","pull_request_review_id":182446527,"id":239614278,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzOTYxNDI3OA==","diff_hunk":"@@ -0,0 +1,45 @@\n+import geomstats.backend as gs\n+import unittest\n+import tensorflow as tf\n+import os\n+\n+\n+class DummySession():\n+    def __enter__(self):\n+        pass\n+\n+    def __exit__(self, a, b, c):\n+        pass\n+\n+\n+def tf_backend():\n+    return os.environ['GEOMSTATS_BACKEND'] == 'tensorflow'\n+\n+\n+test_class = unittest.TestCase\n+if tf_backend():\n+    test_class = tf.test.TestCase\n+\n+\n+class TestCase(test_class):\n+    def assertAllClose(self, a, b, rtol=1e-6, atol=1e-6):\n+        if tf_backend():\n+            return super().assertAllClose(a, b, rtol=rtol, atol=atol)\n+        return self.assertTrue(gs.allclose(a, b, rtol=rtol, atol=atol))\n+\n+    def test_session(self):\n+        if tf_backend():\n+            return super().test_session()\n+        else:\n+            return DummySession()\n+\n+    def assertShapeEqual(self, a, b):\n+        if tf_backend():\n+            return super().assertAllClose(a, b)","path":"geomstats/tests.py","position":38,"original_position":38,"commit_id":"eddc4e46086683f9a0c509d8b1b3b66a26a2be4b","original_commit_id":"eddc4e46086683f9a0c509d8b1b3b66a26a2be4b","user":{"login":"ninamiolane","id":8267869,"node_id":"MDQ6VXNlcjgyNjc4Njk=","avatar_url":"https://avatars3.githubusercontent.com/u/8267869?v=4","gravatar_id":"","url":"https://api.github.com/users/ninamiolane","html_url":"https://github.com/ninamiolane","followers_url":"https://api.github.com/users/ninamiolane/followers","following_url":"https://api.github.com/users/ninamiolane/following{/other_user}","gists_url":"https://api.github.com/users/ninamiolane/gists{/gist_id}","starred_url":"https://api.github.com/users/ninamiolane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ninamiolane/subscriptions","organizations_url":"https://api.github.com/users/ninamiolane/orgs","repos_url":"https://api.github.com/users/ninamiolane/repos","events_url":"https://api.github.com/users/ninamiolane/events{/privacy}","received_events_url":"https://api.github.com/users/ninamiolane/received_events","type":"User","site_admin":false},"body":"Is this testing the shapes?","created_at":"2018-12-06T21:07:04Z","updated_at":"2018-12-06T21:13:49Z","html_url":"https://github.com/geomstats/geomstats/pull/182#discussion_r239614278","pull_request_url":"https://api.github.com/repos/geomstats/geomstats/pulls/182","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/geomstats/geomstats/pulls/comments/239614278"},"html":{"href":"https://github.com/geomstats/geomstats/pull/182#discussion_r239614278"},"pull_request":{"href":"https://api.github.com/repos/geomstats/geomstats/pulls/182"}}},"pull_request":{"url":"https://api.github.com/repos/geomstats/geomstats/pulls/182","id":236392168,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM2MzkyMTY4","html_url":"https://github.com/geomstats/geomstats/pull/182","diff_url":"https://github.com/geomstats/geomstats/pull/182.diff","patch_url":"https://github.com/geomstats/geomstats/pull/182.patch","issue_url":"https://api.github.com/repos/geomstats/geomstats/issues/182","number":182,"state":"open","locked":false,"title":"First step towards test refactoring","user":{"login":"johmathe","id":467643,"node_id":"MDQ6VXNlcjQ2NzY0Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/467643?v=4","gravatar_id":"","url":"https://api.github.com/users/johmathe","html_url":"https://github.com/johmathe","followers_url":"https://api.github.com/users/johmathe/followers","following_url":"https://api.github.com/users/johmathe/following{/other_user}","gists_url":"https://api.github.com/users/johmathe/gists{/gist_id}","starred_url":"https://api.github.com/users/johmathe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johmathe/subscriptions","organizations_url":"https://api.github.com/users/johmathe/orgs","repos_url":"https://api.github.com/users/johmathe/repos","events_url":"https://api.github.com/users/johmathe/events{/privacy}","received_events_url":"https://api.github.com/users/johmathe/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-12-06T02:57:25Z","updated_at":"2018-12-06T21:13:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"de46c0e85e83e943813bac26a79c90e96e969425","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/geomstats/geomstats/pulls/182/commits","review_comments_url":"https://api.github.com/repos/geomstats/geomstats/pulls/182/comments","review_comment_url":"https://api.github.com/repos/geomstats/geomstats/pulls/comments{/number}","comments_url":"https://api.github.com/repos/geomstats/geomstats/issues/182/comments","statuses_url":"https://api.github.com/repos/geomstats/geomstats/statuses/eddc4e46086683f9a0c509d8b1b3b66a26a2be4b","head":{"label":"geomstats:johmathe-tests-refactor","ref":"johmathe-tests-refactor","sha":"eddc4e46086683f9a0c509d8b1b3b66a26a2be4b","user":{"login":"geomstats","id":39272386,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MjcyMzg2","avatar_url":"https://avatars0.githubusercontent.com/u/39272386?v=4","gravatar_id":"","url":"https://api.github.com/users/geomstats","html_url":"https://github.com/geomstats","followers_url":"https://api.github.com/users/geomstats/followers","following_url":"https://api.github.com/users/geomstats/following{/other_user}","gists_url":"https://api.github.com/users/geomstats/gists{/gist_id}","starred_url":"https://api.github.com/users/geomstats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geomstats/subscriptions","organizations_url":"https://api.github.com/users/geomstats/orgs","repos_url":"https://api.github.com/users/geomstats/repos","events_url":"https://api.github.com/users/geomstats/events{/privacy}","received_events_url":"https://api.github.com/users/geomstats/received_events","type":"Organization","site_admin":false},"repo":{"id":108200238,"node_id":"MDEwOlJlcG9zaXRvcnkxMDgyMDAyMzg=","name":"geomstats","full_name":"geomstats/geomstats","private":false,"owner":{"login":"geomstats","id":39272386,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MjcyMzg2","avatar_url":"https://avatars0.githubusercontent.com/u/39272386?v=4","gravatar_id":"","url":"https://api.github.com/users/geomstats","html_url":"https://github.com/geomstats","followers_url":"https://api.github.com/users/geomstats/followers","following_url":"https://api.github.com/users/geomstats/following{/other_user}","gists_url":"https://api.github.com/users/geomstats/gists{/gist_id}","starred_url":"https://api.github.com/users/geomstats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geomstats/subscriptions","organizations_url":"https://api.github.com/users/geomstats/orgs","repos_url":"https://api.github.com/users/geomstats/repos","events_url":"https://api.github.com/users/geomstats/events{/privacy}","received_events_url":"https://api.github.com/users/geomstats/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/geomstats/geomstats","description":"Computations and statistics on manifolds with geometric structures.","fork":false,"url":"https://api.github.com/repos/geomstats/geomstats","forks_url":"https://api.github.com/repos/geomstats/geomstats/forks","keys_url":"https://api.github.com/repos/geomstats/geomstats/keys{/key_id}","collaborators_url":"https://api.github.com/repos/geomstats/geomstats/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/geomstats/geomstats/teams","hooks_url":"https://api.github.com/repos/geomstats/geomstats/hooks","issue_events_url":"https://api.github.com/repos/geomstats/geomstats/issues/events{/number}","events_url":"https://api.github.com/repos/geomstats/geomstats/events","assignees_url":"https://api.github.com/repos/geomstats/geomstats/assignees{/user}","branches_url":"https://api.github.com/repos/geomstats/geomstats/branches{/branch}","tags_url":"https://api.github.com/repos/geomstats/geomstats/tags","blobs_url":"https://api.github.com/repos/geomstats/geomstats/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/geomstats/geomstats/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/geomstats/geomstats/git/refs{/sha}","trees_url":"https://api.github.com/repos/geomstats/geomstats/git/trees{/sha}","statuses_url":"https://api.github.com/repos/geomstats/geomstats/statuses/{sha}","languages_url":"https://api.github.com/repos/geomstats/geomstats/languages","stargazers_url":"https://api.github.com/repos/geomstats/geomstats/stargazers","contributors_url":"https://api.github.com/repos/geomstats/geomstats/contributors","subscribers_url":"https://api.github.com/repos/geomstats/geomstats/subscribers","subscription_url":"https://api.github.com/repos/geomstats/geomstats/subscription","commits_url":"https://api.github.com/repos/geomstats/geomstats/commits{/sha}","git_commits_url":"https://api.github.com/repos/geomstats/geomstats/git/commits{/sha}","comments_url":"https://api.github.com/repos/geomstats/geomstats/comments{/number}","issue_comment_url":"https://api.github.com/repos/geomstats/geomstats/issues/comments{/number}","contents_url":"https://api.github.com/repos/geomstats/geomstats/contents/{+path}","compare_url":"https://api.github.com/repos/geomstats/geomstats/compare/{base}...{head}","merges_url":"https://api.github.com/repos/geomstats/geomstats/merges","archive_url":"https://api.github.com/repos/geomstats/geomstats/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/geomstats/geomstats/downloads","issues_url":"https://api.github.com/repos/geomstats/geomstats/issues{/number}","pulls_url":"https://api.github.com/repos/geomstats/geomstats/pulls{/number}","milestones_url":"https://api.github.com/repos/geomstats/geomstats/milestones{/number}","notifications_url":"https://api.github.com/repos/geomstats/geomstats/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/geomstats/geomstats/labels{/name}","releases_url":"https://api.github.com/repos/geomstats/geomstats/releases{/id}","deployments_url":"https://api.github.com/repos/geomstats/geomstats/deployments","created_at":"2017-10-25T00:44:57Z","updated_at":"2018-12-05T15:06:14Z","pushed_at":"2018-12-06T21:00:32Z","git_url":"git://github.com/geomstats/geomstats.git","ssh_url":"git@github.com:geomstats/geomstats.git","clone_url":"https://github.com/geomstats/geomstats.git","svn_url":"https://github.com/geomstats/geomstats","homepage":"http://geomstats.ai","size":3754,"stargazers_count":148,"watchers_count":148,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"archived":false,"open_issues_count":15,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":25,"open_issues":15,"watchers":148,"default_branch":"master"}},"base":{"label":"geomstats:master","ref":"master","sha":"c44dd5481946fe0345ebd73775a6732662dfce40","user":{"login":"geomstats","id":39272386,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MjcyMzg2","avatar_url":"https://avatars0.githubusercontent.com/u/39272386?v=4","gravatar_id":"","url":"https://api.github.com/users/geomstats","html_url":"https://github.com/geomstats","followers_url":"https://api.github.com/users/geomstats/followers","following_url":"https://api.github.com/users/geomstats/following{/other_user}","gists_url":"https://api.github.com/users/geomstats/gists{/gist_id}","starred_url":"https://api.github.com/users/geomstats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geomstats/subscriptions","organizations_url":"https://api.github.com/users/geomstats/orgs","repos_url":"https://api.github.com/users/geomstats/repos","events_url":"https://api.github.com/users/geomstats/events{/privacy}","received_events_url":"https://api.github.com/users/geomstats/received_events","type":"Organization","site_admin":false},"repo":{"id":108200238,"node_id":"MDEwOlJlcG9zaXRvcnkxMDgyMDAyMzg=","name":"geomstats","full_name":"geomstats/geomstats","private":false,"owner":{"login":"geomstats","id":39272386,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MjcyMzg2","avatar_url":"https://avatars0.githubusercontent.com/u/39272386?v=4","gravatar_id":"","url":"https://api.github.com/users/geomstats","html_url":"https://github.com/geomstats","followers_url":"https://api.github.com/users/geomstats/followers","following_url":"https://api.github.com/users/geomstats/following{/other_user}","gists_url":"https://api.github.com/users/geomstats/gists{/gist_id}","starred_url":"https://api.github.com/users/geomstats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geomstats/subscriptions","organizations_url":"https://api.github.com/users/geomstats/orgs","repos_url":"https://api.github.com/users/geomstats/repos","events_url":"https://api.github.com/users/geomstats/events{/privacy}","received_events_url":"https://api.github.com/users/geomstats/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/geomstats/geomstats","description":"Computations and statistics on manifolds with geometric structures.","fork":false,"url":"https://api.github.com/repos/geomstats/geomstats","forks_url":"https://api.github.com/repos/geomstats/geomstats/forks","keys_url":"https://api.github.com/repos/geomstats/geomstats/keys{/key_id}","collaborators_url":"https://api.github.com/repos/geomstats/geomstats/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/geomstats/geomstats/teams","hooks_url":"https://api.github.com/repos/geomstats/geomstats/hooks","issue_events_url":"https://api.github.com/repos/geomstats/geomstats/issues/events{/number}","events_url":"https://api.github.com/repos/geomstats/geomstats/events","assignees_url":"https://api.github.com/repos/geomstats/geomstats/assignees{/user}","branches_url":"https://api.github.com/repos/geomstats/geomstats/branches{/branch}","tags_url":"https://api.github.com/repos/geomstats/geomstats/tags","blobs_url":"https://api.github.com/repos/geomstats/geomstats/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/geomstats/geomstats/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/geomstats/geomstats/git/refs{/sha}","trees_url":"https://api.github.com/repos/geomstats/geomstats/git/trees{/sha}","statuses_url":"https://api.github.com/repos/geomstats/geomstats/statuses/{sha}","languages_url":"https://api.github.com/repos/geomstats/geomstats/languages","stargazers_url":"https://api.github.com/repos/geomstats/geomstats/stargazers","contributors_url":"https://api.github.com/repos/geomstats/geomstats/contributors","subscribers_url":"https://api.github.com/repos/geomstats/geomstats/subscribers","subscription_url":"https://api.github.com/repos/geomstats/geomstats/subscription","commits_url":"https://api.github.com/repos/geomstats/geomstats/commits{/sha}","git_commits_url":"https://api.github.com/repos/geomstats/geomstats/git/commits{/sha}","comments_url":"https://api.github.com/repos/geomstats/geomstats/comments{/number}","issue_comment_url":"https://api.github.com/repos/geomstats/geomstats/issues/comments{/number}","contents_url":"https://api.github.com/repos/geomstats/geomstats/contents/{+path}","compare_url":"https://api.github.com/repos/geomstats/geomstats/compare/{base}...{head}","merges_url":"https://api.github.com/repos/geomstats/geomstats/merges","archive_url":"https://api.github.com/repos/geomstats/geomstats/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/geomstats/geomstats/downloads","issues_url":"https://api.github.com/repos/geomstats/geomstats/issues{/number}","pulls_url":"https://api.github.com/repos/geomstats/geomstats/pulls{/number}","milestones_url":"https://api.github.com/repos/geomstats/geomstats/milestones{/number}","notifications_url":"https://api.github.com/repos/geomstats/geomstats/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/geomstats/geomstats/labels{/name}","releases_url":"https://api.github.com/repos/geomstats/geomstats/releases{/id}","deployments_url":"https://api.github.com/repos/geomstats/geomstats/deployments","created_at":"2017-10-25T00:44:57Z","updated_at":"2018-12-05T15:06:14Z","pushed_at":"2018-12-06T21:00:32Z","git_url":"git://github.com/geomstats/geomstats.git","ssh_url":"git@github.com:geomstats/geomstats.git","clone_url":"https://github.com/geomstats/geomstats.git","svn_url":"https://github.com/geomstats/geomstats","homepage":"http://geomstats.ai","size":3754,"stargazers_count":148,"watchers_count":148,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"archived":false,"open_issues_count":15,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":25,"open_issues":15,"watchers":148,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/geomstats/geomstats/pulls/182"},"html":{"href":"https://github.com/geomstats/geomstats/pull/182"},"issue":{"href":"https://api.github.com/repos/geomstats/geomstats/issues/182"},"comments":{"href":"https://api.github.com/repos/geomstats/geomstats/issues/182/comments"},"review_comments":{"href":"https://api.github.com/repos/geomstats/geomstats/pulls/182/comments"},"review_comment":{"href":"https://api.github.com/repos/geomstats/geomstats/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/geomstats/geomstats/pulls/182/commits"},"statuses":{"href":"https://api.github.com/repos/geomstats/geomstats/statuses/eddc4e46086683f9a0c509d8b1b3b66a26a2be4b"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"ninamiolane"}}