{"action":"created","comment":{"url":"https://api.github.com/repos/metoppv/improver/pulls/comments/182001061","pull_request_review_id":112722311,"id":182001061,"diff_hunk":"@@ -0,0 +1,328 @@\n+# -*- coding: utf-8 -*-\n+# -----------------------------------------------------------------------------\n+# (C) British Crown Copyright 2017-2018 Met Office.\n+# All rights reserved.\n+#\n+# Redistribution and use in source and binary forms, with or without\n+# modification, are permitted provided that the following conditions are met:\n+#\n+# * Redistributions of source code must retain the above copyright notice, this\n+#   list of conditions and the following disclaimer.\n+#\n+# * Redistributions in binary form must reproduce the above copyright notice,\n+#   this list of conditions and the following disclaimer in the documentation\n+#   and/or other materials provided with the distribution.\n+#\n+# * Neither the name of the copyright holder nor the names of its\n+#   contributors may be used to endorse or promote products derived from\n+#   this software without specific prior written permission.\n+#\n+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n+# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n+# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE\n+# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n+# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n+# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n+# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n+# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n+# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n+# POSSIBILITY OF SUCH DAMAGE.\n+\"\"\"Unit tests for argparser.ArgParser.\"\"\"\n+\n+\n+import os\n+import unittest\n+from mock import patch\n+\n+from improver.argparser import ArgParser\n+\n+\n+# We might one day want to move this up to a more central place.\n+class QuietTestCase(unittest.TestCase):\n+\n+    \"\"\"A subclass of unittest.TestCase which prevents writing to stderr and\n+    calling of sys.exit.\"\"\"\n+\n+    @classmethod\n+    def setUpClass(cls):\n+        \"\"\"Patch the class by redirecting stderr to /dev/null, and disabling\n+        calls to sys.exit.\"\"\"\n+        cls.stderr_patch = patch('sys.stderr', open(os.devnull, 'w'))\n+        cls.exit_patch = patch('sys.exit')\n+        cls.stderr_patch.start()\n+        cls.exit_patch.start()\n+\n+    @classmethod\n+    def tearDownClass(cls):\n+        \"\"\"Stop the patches which redirect stderr to /dev/null and prevents\n+        sys.exit from being called.\"\"\"\n+        cls.stderr_patch.stop()\n+        cls.exit_patch.stop()\n+\n+\n+class Test_init(QuietTestCase):\n+\n+    \"\"\"Test the __init__ method.\"\"\"\n+\n+    def test_create_argparser_with_no_arguments(self):\n+        \"\"\"Test that creating an ArgParser with no arguments has no\n+        arguments.\"\"\"\n+\n+        compulsory_arguments = {}\n+\n+        # it doesn't matter what the centralized arguments are, because we\n+        # select None of them\n+        with patch('improver.argparser.ArgParser.COMPULSORY_ARGUMENTS',\n+                   compulsory_arguments):\n+            parser = ArgParser(central_arguments=None, specific_arguments=None)\n+            args = parser.parse_args()\n+            args = vars(args).keys()\n+            self.assertEqual(len(args), 0)\n+\n+    def test_create_argparser_only_compulsory_arguments(self):\n+        \"\"\"Test that creating an ArgParser with only compulsory arguments\n+        adds only the compulsory arguments.\"\"\"\n+\n+        compulsory_arguments = {'foo': (['--foo'], {})}\n+\n+        # it doesn't matter what the centralized arguments are, because we\n+        # select None of them\n+        with patch('improver.argparser.ArgParser.COMPULSORY_ARGUMENTS',\n+                   compulsory_arguments):\n+            parser = ArgParser(central_arguments=None, specific_arguments=None)\n+            args = parser.parse_args()\n+            args = vars(args).keys()\n+            self.assertItemsEqual(args, ['foo'])\n+\n+    def test_create_argparser_fails_with_unknown_centralized_argument(self):\n+        \"\"\"Test that we raise an exception when attempting to retrieve\n+        centralized arguments which are not centralized argument dictionary.\"\"\"\n+\n+        centralized_arguments = {'foo': (['--foo'], {})}\n+\n+        central_args_to_fetch = ('missing_central_arg',)\n+        with patch('improver.argparser.ArgParser.CENTRALIZED_ARGUMENTS',\n+                   centralized_arguments):\n+            with self.assertRaises(KeyError):\n+                ArgParser(central_arguments=central_args_to_fetch,\n+                          specific_arguments=None)\n+\n+    def test_create_argparser_only_centralized_arguments(self):\n+        \"\"\"Test that creating an ArgParser with only centralized arguments\n+        adds only the selected centralized arguments.\"\"\"\n+\n+        compulsory_arguments = {}\n+        centralized_arguments = {'foo': (['--foo'], {})}\n+\n+        with patch('improver.argparser.ArgParser.COMPULSORY_ARGUMENTS',\n+                   compulsory_arguments):\n+            with patch('improver.argparser.ArgParser.CENTRALIZED_ARGUMENTS',\n+                       centralized_arguments):\n+                parser = ArgParser(central_arguments=['foo'],\n+                                   specific_arguments=None)\n+                args = parser.parse_args()\n+                args = vars(args).keys()\n+                self.assertItemsEqual(args, ['foo'])\n+\n+    def test_create_argparser_only_specific_arguments(self):\n+        \"\"\"Test that creating an ArgParser with only specific arguments\n+        adds only the specific arguments.\"\"\"\n+\n+        compulsory_arguments = {}\n+        specific_arguments = [(['--foo'], {})]\n+\n+        # it doesn't matter what the centralized arguments are, because we\n+        # select None of them\n+        with patch('improver.argparser.ArgParser.COMPULSORY_ARGUMENTS',\n+                   compulsory_arguments):\n+            parser = ArgParser(central_arguments=None,\n+                               specific_arguments=specific_arguments)\n+            args = parser.parse_args()\n+            args = vars(args).keys()\n+            self.assertItemsEqual(args, ['foo'])\n+\n+    def test_create_argparser_compulsory_and_centralized_arguments(self):\n+        \"\"\"Test that creating an ArgParser with compulsory and centralized\n+        arguments adds both of these and no others.\"\"\"\n+\n+        compulsory_arguments = {'foo': (['--foo'], {})}\n+        centralized_arguments = {'bar': (['--bar'], {})}\n+\n+        with patch('improver.argparser.ArgParser.COMPULSORY_ARGUMENTS',\n+                   compulsory_arguments):\n+            with patch('improver.argparser.ArgParser.CENTRALIZED_ARGUMENTS',\n+                       centralized_arguments):\n+                parser = ArgParser(central_arguments=['bar'],\n+                                   specific_arguments=None)\n+                args = parser.parse_args()\n+                args = vars(args).keys()\n+                self.assertItemsEqual(args, ['foo', 'bar'])\n+\n+    def test_create_argparser_compulsory_and_specfic_arguments(self):\n+        \"\"\"Test that creating an ArgParser with compulsory and specific\n+        arguments adds both of these and no others.\"\"\"\n+\n+        compulsory_arguments = {'foo': (['--foo'], {})}\n+        specific_arguments = [(['--bar'], {})]\n+\n+        # it doesn't matter what the centralized arguments are, because we\n+        # select None of them\n+        with patch('improver.argparser.ArgParser.COMPULSORY_ARGUMENTS',\n+                   compulsory_arguments):\n+            parser = ArgParser(central_arguments=None,\n+                               specific_arguments=specific_arguments)\n+            args = parser.parse_args()\n+            args = vars(args).keys()\n+            self.assertItemsEqual(args, ['foo', 'bar'])\n+\n+    def test_create_argparser_all_arguments(self):\n+        \"\"\"Test that creating an ArgParser with compulsory, centralized and\n+        specific arguments adds the arguments from all 3 collections.\"\"\"\n+\n+        compulsory_arguments = {'foo': (['--foo'], {})}\n+        centralized_arguments = {'bar': (['--bar'], {})}\n+        specific_arguments = [(['--baz'], {})]\n+\n+        with patch('improver.argparser.ArgParser.COMPULSORY_ARGUMENTS',\n+                   compulsory_arguments):\n+            with patch('improver.argparser.ArgParser.CENTRALIZED_ARGUMENTS',\n+                       centralized_arguments):\n+                parser = ArgParser(central_arguments=['bar'],\n+                                   specific_arguments=specific_arguments)\n+                args = parser.parse_args()\n+                args = vars(args).keys()\n+                self.assertItemsEqual(args, ['foo', 'bar', 'baz'])\n+\n+\n+class Test_add_arguments(QuietTestCase):\n+\n+    \"\"\"Test the add_arguments method.\"\"\"\n+\n+    def test_adding_multiple_arguments(self):\n+        \"\"\"Test that we can successfully add multiple arguments to the\n+        ArgParser.\"\"\"\n+\n+        # we will not actually pass anything in, so the Namespace will receive\n+        # the defaults (if any) - only check the keys of the Namespace derived\n+        # dictionary\n+        args_to_add = [(['--foo'], {}),\n+                       (['--bar', '--b'], {})]\n+\n+        expected_namespace_keys = ['foo', 'bar']  # + compulsory...\n+\n+        # explicitly pass nothing in - will only have compulsory arguments\n+        # and the ones we added...\n+        parser = ArgParser(central_arguments=None,\n+                           specific_arguments=None)\n+\n+        parser.add_arguments(args_to_add)\n+        result_args = parser.parse_args()\n+        result_args = vars(result_args).keys()\n+        # we could also add compulsory arguments to expected_namespace_keys\n+        # and then assertItemsEqual - (order unimportant), but this\n+        # is unnecessary - just use loop:\n+        # (or we could patch compulsory arguments to be an empty dictionary)\n+        for expected_arg in expected_namespace_keys:\n+            self.assertIn(expected_arg, result_args)\n+\n+    def test_adding_argument_with_defined_kwargs_dict(self):\n+        \"\"\"Test that we can successfully add an argument to the ArgParser,\n+        when the argspec contained kwargs.\"\"\"\n+\n+        # length of argspec is 2...\n+        args_to_add = [(['--foo'], {'action': 'store_true'})]\n+        expected_arg = 'foo'\n+\n+        parser = ArgParser(central_arguments=None,\n+                           specific_arguments=None)\n+\n+        parser.add_arguments(args_to_add)\n+        result_args = parser.parse_args()\n+        result_args = vars(result_args).keys()\n+        self.assertIn(expected_arg, result_args)","path":"lib/improver/tests/argparser/test_ArgParser.py","position":243,"original_position":243,"commit_id":"fc9a6534fab0f6bc1703bb1e00b156f9f2eff0b1","original_commit_id":"fc9a6534fab0f6bc1703bb1e00b156f9f2eff0b1","user":{"login":"fionaRust","id":16209648,"avatar_url":"https://avatars3.githubusercontent.com/u/16209648?v=4","gravatar_id":"","url":"https://api.github.com/users/fionaRust","html_url":"https://github.com/fionaRust","followers_url":"https://api.github.com/users/fionaRust/followers","following_url":"https://api.github.com/users/fionaRust/following{/other_user}","gists_url":"https://api.github.com/users/fionaRust/gists{/gist_id}","starred_url":"https://api.github.com/users/fionaRust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fionaRust/subscriptions","organizations_url":"https://api.github.com/users/fionaRust/orgs","repos_url":"https://api.github.com/users/fionaRust/repos","events_url":"https://api.github.com/users/fionaRust/events{/privacy}","received_events_url":"https://api.github.com/users/fionaRust/received_events","type":"User","site_admin":false},"body":"This doesn't actually check it does anything with the dictionary, you are only checking something with the flags. Is there a way to check the store true has been used? Is it important?","created_at":"2018-04-17T09:00:14Z","updated_at":"2018-04-17T09:00:14Z","html_url":"https://github.com/metoppv/improver/pull/470#discussion_r182001061","pull_request_url":"https://api.github.com/repos/metoppv/improver/pulls/470","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/metoppv/improver/pulls/comments/182001061"},"html":{"href":"https://github.com/metoppv/improver/pull/470#discussion_r182001061"},"pull_request":{"href":"https://api.github.com/repos/metoppv/improver/pulls/470"}}},"pull_request":{"url":"https://api.github.com/repos/metoppv/improver/pulls/470","id":181134437,"html_url":"https://github.com/metoppv/improver/pull/470","diff_url":"https://github.com/metoppv/improver/pull/470.diff","patch_url":"https://github.com/metoppv/improver/pull/470.patch","issue_url":"https://api.github.com/repos/metoppv/improver/issues/470","number":470,"state":"open","locked":false,"title":"IMPRO-503: Updated argparser","user":{"login":"arh89","id":4810226,"avatar_url":"https://avatars0.githubusercontent.com/u/4810226?v=4","gravatar_id":"","url":"https://api.github.com/users/arh89","html_url":"https://github.com/arh89","followers_url":"https://api.github.com/users/arh89/followers","following_url":"https://api.github.com/users/arh89/following{/other_user}","gists_url":"https://api.github.com/users/arh89/gists{/gist_id}","starred_url":"https://api.github.com/users/arh89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arh89/subscriptions","organizations_url":"https://api.github.com/users/arh89/orgs","repos_url":"https://api.github.com/users/arh89/repos","events_url":"https://api.github.com/users/arh89/events{/privacy}","received_events_url":"https://api.github.com/users/arh89/received_events","type":"User","site_admin":false},"body":"Partially addresses #433\r\n\r\nTesting:\r\n - [x] Ran tests and they passed OK\r\n - [x] Added new tests for the new feature(s)","created_at":"2018-04-12T09:02:20Z","updated_at":"2018-04-17T09:00:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c57ca24b369b6402a34e597e077a5c701f074381","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/metoppv/improver/pulls/470/commits","review_comments_url":"https://api.github.com/repos/metoppv/improver/pulls/470/comments","review_comment_url":"https://api.github.com/repos/metoppv/improver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/metoppv/improver/issues/470/comments","statuses_url":"https://api.github.com/repos/metoppv/improver/statuses/fc9a6534fab0f6bc1703bb1e00b156f9f2eff0b1","head":{"label":"arh89:argparser_update","ref":"argparser_update","sha":"fc9a6534fab0f6bc1703bb1e00b156f9f2eff0b1","user":{"login":"arh89","id":4810226,"avatar_url":"https://avatars0.githubusercontent.com/u/4810226?v=4","gravatar_id":"","url":"https://api.github.com/users/arh89","html_url":"https://github.com/arh89","followers_url":"https://api.github.com/users/arh89/followers","following_url":"https://api.github.com/users/arh89/following{/other_user}","gists_url":"https://api.github.com/users/arh89/gists{/gist_id}","starred_url":"https://api.github.com/users/arh89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arh89/subscriptions","organizations_url":"https://api.github.com/users/arh89/orgs","repos_url":"https://api.github.com/users/arh89/repos","events_url":"https://api.github.com/users/arh89/events{/privacy}","received_events_url":"https://api.github.com/users/arh89/received_events","type":"User","site_admin":false},"repo":{"id":91713613,"name":"improver","full_name":"arh89/improver","owner":{"login":"arh89","id":4810226,"avatar_url":"https://avatars0.githubusercontent.com/u/4810226?v=4","gravatar_id":"","url":"https://api.github.com/users/arh89","html_url":"https://github.com/arh89","followers_url":"https://api.github.com/users/arh89/followers","following_url":"https://api.github.com/users/arh89/following{/other_user}","gists_url":"https://api.github.com/users/arh89/gists{/gist_id}","starred_url":"https://api.github.com/users/arh89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arh89/subscriptions","organizations_url":"https://api.github.com/users/arh89/orgs","repos_url":"https://api.github.com/users/arh89/repos","events_url":"https://api.github.com/users/arh89/events{/privacy}","received_events_url":"https://api.github.com/users/arh89/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arh89/improver","description":"IMPROVER","fork":true,"url":"https://api.github.com/repos/arh89/improver","forks_url":"https://api.github.com/repos/arh89/improver/forks","keys_url":"https://api.github.com/repos/arh89/improver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arh89/improver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arh89/improver/teams","hooks_url":"https://api.github.com/repos/arh89/improver/hooks","issue_events_url":"https://api.github.com/repos/arh89/improver/issues/events{/number}","events_url":"https://api.github.com/repos/arh89/improver/events","assignees_url":"https://api.github.com/repos/arh89/improver/assignees{/user}","branches_url":"https://api.github.com/repos/arh89/improver/branches{/branch}","tags_url":"https://api.github.com/repos/arh89/improver/tags","blobs_url":"https://api.github.com/repos/arh89/improver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arh89/improver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arh89/improver/git/refs{/sha}","trees_url":"https://api.github.com/repos/arh89/improver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arh89/improver/statuses/{sha}","languages_url":"https://api.github.com/repos/arh89/improver/languages","stargazers_url":"https://api.github.com/repos/arh89/improver/stargazers","contributors_url":"https://api.github.com/repos/arh89/improver/contributors","subscribers_url":"https://api.github.com/repos/arh89/improver/subscribers","subscription_url":"https://api.github.com/repos/arh89/improver/subscription","commits_url":"https://api.github.com/repos/arh89/improver/commits{/sha}","git_commits_url":"https://api.github.com/repos/arh89/improver/git/commits{/sha}","comments_url":"https://api.github.com/repos/arh89/improver/comments{/number}","issue_comment_url":"https://api.github.com/repos/arh89/improver/issues/comments{/number}","contents_url":"https://api.github.com/repos/arh89/improver/contents/{+path}","compare_url":"https://api.github.com/repos/arh89/improver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arh89/improver/merges","archive_url":"https://api.github.com/repos/arh89/improver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arh89/improver/downloads","issues_url":"https://api.github.com/repos/arh89/improver/issues{/number}","pulls_url":"https://api.github.com/repos/arh89/improver/pulls{/number}","milestones_url":"https://api.github.com/repos/arh89/improver/milestones{/number}","notifications_url":"https://api.github.com/repos/arh89/improver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arh89/improver/labels{/name}","releases_url":"https://api.github.com/repos/arh89/improver/releases{/id}","deployments_url":"https://api.github.com/repos/arh89/improver/deployments","created_at":"2017-05-18T16:10:24Z","updated_at":"2018-04-11T23:01:34Z","pushed_at":"2018-04-16T15:20:13Z","git_url":"git://github.com/arh89/improver.git","ssh_url":"git@github.com:arh89/improver.git","clone_url":"https://github.com/arh89/improver.git","svn_url":"https://github.com/arh89/improver","homepage":null,"size":3194,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"metoppv:master","ref":"master","sha":"a7bfcb6654bf7827191eddc04a139ffd6819a9e0","user":{"login":"metoppv","id":26465485,"avatar_url":"https://avatars2.githubusercontent.com/u/26465485?v=4","gravatar_id":"","url":"https://api.github.com/users/metoppv","html_url":"https://github.com/metoppv","followers_url":"https://api.github.com/users/metoppv/followers","following_url":"https://api.github.com/users/metoppv/following{/other_user}","gists_url":"https://api.github.com/users/metoppv/gists{/gist_id}","starred_url":"https://api.github.com/users/metoppv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metoppv/subscriptions","organizations_url":"https://api.github.com/users/metoppv/orgs","repos_url":"https://api.github.com/users/metoppv/repos","events_url":"https://api.github.com/users/metoppv/events{/privacy}","received_events_url":"https://api.github.com/users/metoppv/received_events","type":"Organization","site_admin":false},"repo":{"id":85334761,"name":"improver","full_name":"metoppv/improver","owner":{"login":"metoppv","id":26465485,"avatar_url":"https://avatars2.githubusercontent.com/u/26465485?v=4","gravatar_id":"","url":"https://api.github.com/users/metoppv","html_url":"https://github.com/metoppv","followers_url":"https://api.github.com/users/metoppv/followers","following_url":"https://api.github.com/users/metoppv/following{/other_user}","gists_url":"https://api.github.com/users/metoppv/gists{/gist_id}","starred_url":"https://api.github.com/users/metoppv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metoppv/subscriptions","organizations_url":"https://api.github.com/users/metoppv/orgs","repos_url":"https://api.github.com/users/metoppv/repos","events_url":"https://api.github.com/users/metoppv/events{/privacy}","received_events_url":"https://api.github.com/users/metoppv/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/metoppv/improver","description":"IMPROVER is a library of algorithms for meteorological post-processing and verification.","fork":false,"url":"https://api.github.com/repos/metoppv/improver","forks_url":"https://api.github.com/repos/metoppv/improver/forks","keys_url":"https://api.github.com/repos/metoppv/improver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/metoppv/improver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/metoppv/improver/teams","hooks_url":"https://api.github.com/repos/metoppv/improver/hooks","issue_events_url":"https://api.github.com/repos/metoppv/improver/issues/events{/number}","events_url":"https://api.github.com/repos/metoppv/improver/events","assignees_url":"https://api.github.com/repos/metoppv/improver/assignees{/user}","branches_url":"https://api.github.com/repos/metoppv/improver/branches{/branch}","tags_url":"https://api.github.com/repos/metoppv/improver/tags","blobs_url":"https://api.github.com/repos/metoppv/improver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/metoppv/improver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/metoppv/improver/git/refs{/sha}","trees_url":"https://api.github.com/repos/metoppv/improver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/metoppv/improver/statuses/{sha}","languages_url":"https://api.github.com/repos/metoppv/improver/languages","stargazers_url":"https://api.github.com/repos/metoppv/improver/stargazers","contributors_url":"https://api.github.com/repos/metoppv/improver/contributors","subscribers_url":"https://api.github.com/repos/metoppv/improver/subscribers","subscription_url":"https://api.github.com/repos/metoppv/improver/subscription","commits_url":"https://api.github.com/repos/metoppv/improver/commits{/sha}","git_commits_url":"https://api.github.com/repos/metoppv/improver/git/commits{/sha}","comments_url":"https://api.github.com/repos/metoppv/improver/comments{/number}","issue_comment_url":"https://api.github.com/repos/metoppv/improver/issues/comments{/number}","contents_url":"https://api.github.com/repos/metoppv/improver/contents/{+path}","compare_url":"https://api.github.com/repos/metoppv/improver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/metoppv/improver/merges","archive_url":"https://api.github.com/repos/metoppv/improver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/metoppv/improver/downloads","issues_url":"https://api.github.com/repos/metoppv/improver/issues{/number}","pulls_url":"https://api.github.com/repos/metoppv/improver/pulls{/number}","milestones_url":"https://api.github.com/repos/metoppv/improver/milestones{/number}","notifications_url":"https://api.github.com/repos/metoppv/improver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/metoppv/improver/labels{/name}","releases_url":"https://api.github.com/repos/metoppv/improver/releases{/id}","deployments_url":"https://api.github.com/repos/metoppv/improver/deployments","created_at":"2017-03-17T16:51:29Z","updated_at":"2018-04-11T16:01:39Z","pushed_at":"2018-04-17T08:36:27Z","git_url":"git://github.com/metoppv/improver.git","ssh_url":"git@github.com:metoppv/improver.git","clone_url":"https://github.com/metoppv/improver.git","svn_url":"https://github.com/metoppv/improver","homepage":"http://improver.readthedocs.io/en/latest/","size":3101,"stargazers_count":12,"watchers_count":12,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"archived":false,"open_issues_count":106,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":26,"open_issues":106,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/metoppv/improver/pulls/470"},"html":{"href":"https://github.com/metoppv/improver/pull/470"},"issue":{"href":"https://api.github.com/repos/metoppv/improver/issues/470"},"comments":{"href":"https://api.github.com/repos/metoppv/improver/issues/470/comments"},"review_comments":{"href":"https://api.github.com/repos/metoppv/improver/pulls/470/comments"},"review_comment":{"href":"https://api.github.com/repos/metoppv/improver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/metoppv/improver/pulls/470/commits"},"statuses":{"href":"https://api.github.com/repos/metoppv/improver/statuses/fc9a6534fab0f6bc1703bb1e00b156f9f2eff0b1"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"fionaRust"}}