donnemartin / gitsome

Compare d7c57ab ... +0 ... 1c02b6f

Coverage Reach
gitsome/lib/github3/repos/repo.py gitsome/lib/github3/repos/release.py gitsome/lib/github3/repos/contents.py gitsome/lib/github3/repos/deployment.py gitsome/lib/github3/repos/commit.py gitsome/lib/github3/repos/branch.py gitsome/lib/github3/repos/hook.py gitsome/lib/github3/repos/comparison.py gitsome/lib/github3/repos/comment.py gitsome/lib/github3/repos/pages.py gitsome/lib/github3/repos/status.py gitsome/lib/github3/repos/stats.py gitsome/lib/github3/repos/tag.py gitsome/lib/github3/repos/issue_import.py gitsome/lib/github3/repos/__init__.py gitsome/lib/github3/github.py gitsome/lib/github3/issues/issue.py gitsome/lib/github3/issues/milestone.py gitsome/lib/github3/issues/event.py gitsome/lib/github3/issues/label.py gitsome/lib/github3/issues/comment.py gitsome/lib/github3/issues/__init__.py gitsome/lib/github3/models.py gitsome/lib/github3/orgs.py gitsome/lib/github3/pulls.py gitsome/lib/github3/users.py gitsome/lib/github3/gists/gist.py gitsome/lib/github3/gists/history.py gitsome/lib/github3/gists/file.py gitsome/lib/github3/gists/comment.py gitsome/lib/github3/gists/__init__.py gitsome/lib/github3/events.py gitsome/lib/github3/git.py gitsome/lib/github3/api.py gitsome/lib/github3/structs.py gitsome/lib/github3/session.py gitsome/lib/github3/notifications.py gitsome/lib/github3/exceptions.py gitsome/lib/github3/search/code.py gitsome/lib/github3/search/user.py gitsome/lib/github3/search/issue.py gitsome/lib/github3/search/repository.py gitsome/lib/github3/search/__init__.py gitsome/lib/github3/utils.py gitsome/lib/github3/decorators.py gitsome/lib/github3/auths.py gitsome/lib/github3/null.py gitsome/lib/github3/licenses.py gitsome/lib/github3/__about__.py gitsome/lib/github3/__init__.py gitsome/lib/html2text/html2text.py gitsome/lib/img2txt/img2txt.py gitsome/github.py gitsome/config.py gitsome/formatter.py gitsome/githubcli.py gitsome/completer.py gitsome/web_viewer.py gitsome/table.py gitsome/utils.py gitsome/view_entry.py gitsome/completions.py gitsome/completions_git.py gitsome/__init__.py gitsome/rss_feed.py tests/mock_github_api.py tests/test_github.py tests/test_config.py tests/test_github_cli.py tests/test_completer.py tests/test_web_viewer.py tests/data/markdown.py tests/data/user.py tests/data/gitignores.py tests/data/issue.py tests/data/license.py tests/data/emoji.py tests/data/trends.py tests/data/events.py tests/data/email.py tests/data/user_feed.py tests/data/thread.py tests/run_tests.py tests/mock_feed_parser.py tests/compat.py tests/mock_pretty_date_time.py

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

Showing 4 of 11 files from the diff.

@@ -140,7 +140,7 @@
Loading
140 140
        :return: A list of options.
141 141
        """
142 142
        options = []
143 -
        for subcommand, args_opts in COMPLETIONS_GH.items():
143 +
        for subcommand, _ in COMPLETIONS_GH.items():
144 144
            if subcommand in words and \
145 145
                (words[-2] == subcommand or
146 146
                    self.completing_subcommand_option_util(subcommand, words)):
@@ -183,7 +183,7 @@
Loading
183 183
        """
184 184
        if 'gh' not in words:
185 185
            return []
186 -
        for subcommand, args_opts in COMPLETIONS_GH.items():
186 +
        for subcommand, _ in COMPLETIONS_GH.items():
187 187
            if subcommand in words:
188 188
                args = list(COMPLETIONS_GH[subcommand]['args'].keys())
189 189
                if not args:

@@ -126,7 +126,7 @@
Loading
126 126
        return self._boolean(self._delete(self._api), 204, 404)
127 127
128 128
    @requires_auth
129 -
    def edit(self, description='', files={}):
129 +
    def edit(self, description='', files=None):
130 130
        """Edit this gist.
131 131
132 132
        :param str description: (optional), description of the gist
@@ -138,6 +138,8 @@
Loading
138 138
        :returns: bool -- whether the edit was successful
139 139
140 140
        """
141 +
        if files is None:
142 +
            files = {}
141 143
        data = {}
142 144
        json = None
143 145
        if description:

@@ -575,7 +575,7 @@
Loading
575 575
            repo_pulls = repository.pull_requests()
576 576
            for repo_pull in repo_pulls:
577 577
                url = self.formatter.format_issues_url_from_issue(repo_pull)
578 -
                user, repo, issues, number = url.split('/')
578 +
                user, repo, _, number = url.split('/')
579 579
                repo_pull = self.config.api.pull_request(user, repo, number)
580 580
                issues_list.append(repo_pull)
581 581
        self.issues(issues_list, limit, pager)

@@ -68,13 +68,15 @@
Loading
68 68
        return '<GitHub at 0x{0:x}>'.format(id(self))
69 69
70 70
    @requires_auth
71 -
    def add_email_addresses(self, addresses=[]):
71 +
    def add_email_addresses(self, addresses=None):
72 72
        """Add the email addresses in ``addresses`` to the authenticated
73 73
        user's account.
74 74
75 75
        :param list addresses: (optional), email addresses to be added
76 76
        :returns: list of :class:`~github3.users.Email`
77 77
        """
78 +
        if addresses is None:
79 +
            addresses = []
78 80
        json = []
79 81
        if addresses:
80 82
            url = self._build_url('user', 'emails')
@@ -252,7 +254,7 @@
Loading
252 254
253 255
    @requires_auth
254 256
    def create_issue(self, owner, repository, title, body=None, assignee=None,
255 -
                     milestone=None, labels=[]):
257 +
                     milestone=None, labels=None):
256 258
        """Create an issue on the project 'repository' owned by 'owner'
257 259
        with title 'title'.
258 260
@@ -280,6 +282,8 @@
Loading
280 282
        :param list labels: (optional), List of label names.
281 283
        :returns: :class:`Issue <github3.issues.Issue>` if successful
282 284
        """
285 +
        if labels is None:
286 +
            labels = []
283 287
        repo = None
284 288
        if owner and repository and title:
285 289
            repo = self.repository(owner, repository)
@@ -349,13 +353,15 @@
Loading
349 353
        return self._instance_or_null(Repository, json)
350 354
351 355
    @requires_auth
352 -
    def delete_email_addresses(self, addresses=[]):
356 +
    def delete_email_addresses(self, addresses=None):
353 357
        """Delete the email addresses in ``addresses`` from the
354 358
        authenticated user's account.
355 359
356 360
        :param list addresses: (optional), email addresses to be removed
357 361
        :returns: bool
358 362
        """
363 +
        if addresses is None:
364 +
            addresses = []
359 365
        url = self._build_url('user', 'emails')
360 366
        return self._boolean(self._delete(url, data=json.dumps(addresses)),
361 367
                             204, 404)

Learn more Showing 52 files with coverage changes found.

New file gitsome/lib/github3/exceptions.py
New
Loading file...
New file gitsome/lib/github3/search/user.py
New
Loading file...
New file gitsome/lib/github3/auths.py
New
Loading file...
New file gitsome/lib/github3/gists/file.py
New
Loading file...
New file gitsome/lib/github3/structs.py
New
Loading file...
New file gitsome/lib/github3/pulls.py
New
Loading file...
New file gitsome/lib/github3/repos/comment.py
New
Loading file...
New file gitsome/lib/github3/issues/event.py
New
Loading file...
New file gitsome/lib/html2text/html2text.py
New
Loading file...
New file gitsome/lib/github3/users.py
New
Loading file...
New file gitsome/lib/github3/repos/status.py
New
Loading file...
New file gitsome/lib/github3/repos/pages.py
New
Loading file...
New file gitsome/lib/github3/models.py
New
Loading file...
New file gitsome/lib/github3/issues/issue.py
New
Loading file...
New file gitsome/lib/img2txt/img2txt.py
New
Loading file...
New file gitsome/lib/github3/git.py
New
Loading file...
New file gitsome/lib/github3/issues/milestone.py
New
Loading file...
New file gitsome/lib/github3/decorators.py
New
Loading file...
New file gitsome/lib/github3/session.py
New
Loading file...
New file gitsome/lib/github3/repos/__init__.py
New
Loading file...
New file gitsome/lib/github3/notifications.py
New
Loading file...
New file gitsome/lib/github3/gists/__init__.py
New
Loading file...
New file gitsome/lib/github3/orgs.py
New
Loading file...
New file gitsome/lib/github3/repos/repo.py
New
Loading file...
New file gitsome/lib/github3/github.py
New
Loading file...
New file gitsome/lib/github3/utils.py
New
Loading file...
New file gitsome/lib/github3/repos/tag.py
New
Loading file...
New file gitsome/lib/github3/repos/branch.py
New
Loading file...
New file gitsome/lib/github3/search/code.py
New
Loading file...
New file gitsome/lib/github3/repos/deployment.py
New
Loading file...
New file gitsome/lib/github3/licenses.py
New
Loading file...
New file gitsome/lib/github3/null.py
New
Loading file...
New file gitsome/lib/github3/issues/comment.py
New
Loading file...
New file gitsome/lib/github3/repos/contents.py
New
Loading file...
New file gitsome/lib/github3/repos/comparison.py
New
Loading file...
New file gitsome/lib/github3/issues/label.py
New
Loading file...
New file gitsome/lib/github3/issues/__init__.py
New
Loading file...
New file gitsome/lib/github3/events.py
New
Loading file...
New file gitsome/lib/github3/search/__init__.py
New
Loading file...
New file gitsome/lib/github3/search/issue.py
New
Loading file...
New file gitsome/lib/github3/gists/history.py
New
Loading file...
New file gitsome/lib/github3/api.py
New
Loading file...
New file gitsome/lib/github3/search/repository.py
New
Loading file...
New file gitsome/lib/github3/repos/hook.py
New
Loading file...
New file gitsome/lib/github3/gists/gist.py
New
Loading file...
New file gitsome/lib/github3/repos/commit.py
New
Loading file...
New file gitsome/lib/github3/gists/comment.py
New
Loading file...
New file gitsome/lib/github3/__init__.py
New
Loading file...
New file gitsome/lib/github3/repos/issue_import.py
New
Loading file...
New file gitsome/lib/github3/repos/stats.py
New
Loading file...
New file gitsome/lib/github3/__about__.py
New
Loading file...
New file gitsome/lib/github3/repos/release.py
New
Loading file...
Files Coverage
gitsome -45.71% 46.75%
tests 99.38%
Project Totals (86 files) 53.19%
Loading