Changeset View
Changeset View
Standalone View
Standalone View
contrib/buildbot/test/test_endpoint_backportcheck.py
Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Lines | def test_backportCheck_hasPRs(self): | ||||
"Backport of Secp256k1 [[https://github.com/bitcoin-core/secp256k1/pull/23 | PR23]] and " | "Backport of Secp256k1 [[https://github.com/bitcoin-core/secp256k1/pull/23 | PR23]] and " | ||||
"[[https://github.com/bitcoin-core/secp256k1/pull/345 | PR345]] and " | "[[https://github.com/bitcoin-core/secp256k1/pull/345 | PR345]] and " | ||||
"[[https://github.com/bitcoin-core/secp256k1/pull/45 | PR45]]\n" | "[[https://github.com/bitcoin-core/secp256k1/pull/45 | PR45]]\n" | ||||
"SECP256K1 [[https://github.com/bitcoin-core/secp256k1/pull/678 | PR678]] outside of a code block `secp256k1 PR456 inside a code block`\n" | "SECP256K1 [[https://github.com/bitcoin-core/secp256k1/pull/678 | PR678]] outside of a code block `secp256k1 PR456 inside a code block`\n" | ||||
"```secp256k1 PR456 in a single-line code block```\n" | "```secp256k1 PR456 in a single-line code block```\n" | ||||
"```\nsecp256k1 PR456 in a multi-line code block\n```\n" | "```\nsecp256k1 PR456 in a multi-line code block\n```\n" | ||||
" secp256k1 PR456 in a code block using indentation\n" | " secp256k1 PR456 in a code block using indentation\n" | ||||
"Another secp backport [[https://github.com/bitcoin-core/secp256k1/pull/567 | PR567]]", | "Another secp backport [[https://github.com/bitcoin-core/secp256k1/pull/567 | PR567]]", | ||||
}], objectIdentifier='1234'), mock.call(transactions=[{ | |||||
"type": "comment", | |||||
"value": "[Bot Message]\n" | |||||
"One or more PR numbers were detected in the summary.\n" | |||||
"Links to those PRs have been inserted into the summary for reference.", | |||||
}], objectIdentifier='1234')] | }], objectIdentifier='1234')] | ||||
self.phab.differential.revision.edit.assert_has_calls( | self.phab.differential.revision.edit.assert_has_calls( | ||||
calls, any_order=True) | calls, any_order=True) | ||||
if __name__ == '__main__': | if __name__ == '__main__': | ||||
unittest.main() | unittest.main() |