Esempio n. 1
0
def test_replace_bitbucket_references():
    assert event_hooks.replace_bitbucket_references(
        "project-url", "#2") == "[BitBucket#2](project-url/issues/2)"
    assert event_hooks.replace_bitbucket_references(
        "project-url", "#2 ") == "[BitBucket#2](project-url/issues/2) "
    assert event_hooks.replace_bitbucket_references(
        "project-url", " #2 ") == " [BitBucket#2](project-url/issues/2) "
    assert event_hooks.replace_bitbucket_references(
        "project-url", " #2") == " [BitBucket#2](project-url/issues/2)"
    assert event_hooks.replace_bitbucket_references("project-url",
                                                    "#test") == "#test"
Esempio n. 2
0
def test_replace_bitbucket_references():
    assert event_hooks.replace_bitbucket_references("project-url", "#2") == "[BitBucket#2](project-url/issues/2)"
    assert event_hooks.replace_bitbucket_references("project-url", "#2 ") == "[BitBucket#2](project-url/issues/2) "
    assert event_hooks.replace_bitbucket_references("project-url", " #2 ") == " [BitBucket#2](project-url/issues/2) "
    assert event_hooks.replace_bitbucket_references("project-url", " #2") == " [BitBucket#2](project-url/issues/2)"
    assert event_hooks.replace_bitbucket_references("project-url", "#test") == "#test"