python / bedevere
Showing 2 of 2 files from the diff.

@@ -117,7 +117,7 @@
Loading
117 117
    """The span checking of regex matches takes care of cases like bpo-123 [bpo-123]…"""
118 118
    issue = match.group("issue")
119 119
    markdown_link_re = re.compile(r"""
120 -
                                    \[\s*bpo-(?P<issue>{issue})\s*\]   
120 +
                                    \[[^\]]*bpo-(?P<issue>{issue})[^\]]*\]
121 121
                                    \(\s*https://bugs.python.org/issue{issue}\s*\)""".format(issue=issue),
122 122
                                    re.VERBOSE)
123 123
    html_link_re = re.compile(r""" <a
@@ -141,7 +141,6 @@
Loading
141 141
    """Uses infinite loop for updating the string being searched dynamically."""
142 142
    new_body = ""
143 143
    leftover_body = body
144 -
    ISSUE_RE = re.compile(r"bpo-(?P<issue>\d+)")
145 144
    while True:
146 145
        match = ISSUE_RE.search(leftover_body)
147 146
        if match is None:

@@ -316,7 +316,7 @@
Loading
316 316
    assert "123456" in gh.patch_url
317 317
318 318
@pytest.mark.asyncio
319 -
@pytest.mark.parametrize("event,action", [("issue_comment", "created"), 
319 +
@pytest.mark.parametrize("event,action", [("issue_comment", "created"),
320 320
                                          ("issue_comment", "edited"),
321 321
                                          ("commit_comment", "created"),
322 322
                                          ("commit_comment", "edited")])
@@ -359,7 +359,7 @@
Loading
359 359
360 360
361 361
@pytest.mark.asyncio
362 -
@pytest.mark.parametrize("event,action", [("issue_comment", "created"), 
362 +
@pytest.mark.parametrize("event,action", [("issue_comment", "created"),
363 363
                                          ("issue_comment", "edited"),
364 364
                                          ("commit_comment", "created"),
365 365
                                          ("commit_comment", "edited")])
@@ -391,6 +391,7 @@
Loading
391 391
            "issue_url": "https://api.github.com/repos/blah/blah/issues/comments/123456",
392 392
            "body": ("bpo-123"
393 393
                    "[bpo-123](https://bugs.python.org/issue123)"
394 +
                    "[something about bpo-123](https://bugs.python.org/issue123)"
394 395
                    "<a href='https://bugs.python.org/issue123'>bpo-123</a>"
395 396
                   )
396 397
        },
@@ -402,11 +403,12 @@
Loading
402 403
    await bpo.router.dispatch(event, gh)
403 404
    body_data = gh.patch_data
404 405
    assert body_data["body"].count("[bpo-123](https://bugs.python.org/issue123)") == 2
406 +
    assert body_data["body"].count("[something about bpo-123](https://bugs.python.org/issue123)") == 1
405 407
    assert "123456" in gh.patch_url
406 408
407 409
408 410
@pytest.mark.asyncio
409 -
@pytest.mark.parametrize("event,action", [("issue_comment", "created"), 
411 +
@pytest.mark.parametrize("event,action", [("issue_comment", "created"),
410 412
                                          ("issue_comment", "edited"),
411 413
                                          ("commit_comment", "created"),
412 414
                                          ("commit_comment", "edited")])
@@ -417,6 +419,7 @@
Loading
417 419
            "url": "https://api.github.com/repos/blah/blah/issues/comments/123456",
418 420
            "body": ("bpo-123"
419 421
                    "[bpo-123](https://bugs.python.org/issue123)"
422 +
                    "[something about bpo-123](https://bugs.python.org/issue123)"
420 423
                    "<a href='https://bugs.python.org/issue123'>bpo-123</a>"
421 424
                   )
422 425
        }
@@ -427,4 +430,5 @@
Loading
427 430
    await bpo.router.dispatch(event, gh)
428 431
    body_data = gh.patch_data
429 432
    assert body_data["body"].count("[bpo-123](https://bugs.python.org/issue123)") == 2
433 +
    assert body_data["body"].count("[something about bpo-123](https://bugs.python.org/issue123)") == 1
430 434
    assert "123456" in gh.patch_url
Files Coverage
bedevere 100.00%
tests 100.00%
Project Totals (20 files) 100.00%
566.2
TRAVIS_PYTHON_VERSION=3.7-dev
TRAVIS_OS_NAME=linux
566.1
TRAVIS_PYTHON_VERSION=3.7
TRAVIS_OS_NAME=linux
572.2
TRAVIS_PYTHON_VERSION=3.7-dev
TRAVIS_OS_NAME=linux
572.1
TRAVIS_PYTHON_VERSION=3.7
TRAVIS_OS_NAME=linux
573.2
TRAVIS_PYTHON_VERSION=3.7-dev
TRAVIS_OS_NAME=linux
573.1
TRAVIS_PYTHON_VERSION=3.7
TRAVIS_OS_NAME=linux
574.1
TRAVIS_PYTHON_VERSION=3.7
TRAVIS_OS_NAME=linux
574.2
TRAVIS_PYTHON_VERSION=3.7-dev
TRAVIS_OS_NAME=linux

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading