Azure devops: parse PR url starting from the end

This commit is contained in:
Thomas De Keulenaer
2025-05-06 15:01:48 +02:00
parent f85587fb1f
commit df1d859e54
2 changed files with 21 additions and 15 deletions

View File

@ -13,3 +13,10 @@ class TestAzureDevOpsParsing():
# workspace_slug, repo_slug, pr_number
assert AzureDevopsProvider._parse_pr_url(pr_url) == ("project", "repo", 1)
def test_self_hosted_address(self):
pr_url = "http://server.be:8080/tfs/department/project/_git/repo/pullrequest/1"
# workspace_slug, repo_slug, pr_number
assert AzureDevopsProvider._parse_pr_url(pr_url) == ("project", "repo", 1)