Skip to content

Commit

Permalink
Add tests for BitBucket HTTPS URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
mathrick authored Sep 26, 2024
1 parent 6576d28 commit 7846315
Showing 1 changed file with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions giturlparse/tests/test_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,75 @@
},
),
),
(
"HTTPS",
(
"https://bitbucket.org/Org/Repo.git",
{
"host": "bitbucket.org",
"resource": "bitbucket.org",
"user": "git",
"port": "",
"owner": "Org",
"repo": "Repo",
"name": "Repo",
"groups": [],
"path": "",
"path_raw": "",
"pathname": "Org/Repo.git",
"branch": "",
"protocol": "https",
"protocols": [],
"platform": "bitbucket",
},
),
),
(
"HTTPS",
(
"https://bitbucket.org/Org/Repo",
{
"host": "bitbucket.org",
"resource": "bitbucket.org",
"user": "git",
"port": "",
"owner": "Org",
"repo": "Repo",
"name": "Repo",
"groups": [],
"path": "",
"path_raw": "",
"pathname": "Org/Repo",
"branch": "",
"protocol": "https",
"protocols": [],
"platform": "bitbucket",
},
),
),
(
"HTTPS",
(
"https://bitbucket.com/Org/Repo",
{
"host": "bitbucket.com",
"resource": "bitbucket.com",
"user": "git",
"port": "",
"owner": "Org",
"repo": "Repo",
"name": "Repo",
"groups": [],
"path": "",
"path_raw": "",
"pathname": "Org/Repo",
"branch": "",
"protocol": "https",
"protocols": [],
"platform": "bitbucket",
},
),
),
# Gitlab
(
"SSH",
Expand Down

0 comments on commit 7846315

Please sign in to comment.