Skip to content

Commit 897c321

Browse files
committed
Add tests for BitBucket HTTPS URLs
1 parent fd2e5c4 commit 897c321

1 file changed

Lines changed: 69 additions & 0 deletions

File tree

giturlparse/tests/test_parse.py

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,75 @@
273273
},
274274
),
275275
),
276+
(
277+
"HTTPS",
278+
(
279+
"https://bitbucket.org/Org/Repo.git",
280+
{
281+
"host": "bitbucket.org",
282+
"resource": "bitbucket.org",
283+
"user": "git",
284+
"port": "",
285+
"owner": "Org",
286+
"repo": "Repo",
287+
"name": "Repo",
288+
"groups": [],
289+
"path": "",
290+
"path_raw": "",
291+
"pathname": "/Org/Repo.git",
292+
"branch": "",
293+
"protocol": "https",
294+
"protocols": ["https"],
295+
"platform": "bitbucket",
296+
},
297+
),
298+
),
299+
(
300+
"HTTPS",
301+
(
302+
"https://bitbucket.org/Org/Repo",
303+
{
304+
"host": "bitbucket.org",
305+
"resource": "bitbucket.org",
306+
"user": "git",
307+
"port": "",
308+
"owner": "Org",
309+
"repo": "Repo",
310+
"name": "Repo",
311+
"groups": [],
312+
"path": "",
313+
"path_raw": "",
314+
"pathname": "/Org/Repo",
315+
"branch": "",
316+
"protocol": "https",
317+
"protocols": ["https"],
318+
"platform": "bitbucket",
319+
},
320+
),
321+
),
322+
(
323+
"HTTPS",
324+
(
325+
"https://bitbucket.com/Org/Repo",
326+
{
327+
"host": "bitbucket.com",
328+
"resource": "bitbucket.com",
329+
"user": "git",
330+
"port": "",
331+
"owner": "Org",
332+
"repo": "Repo",
333+
"name": "Repo",
334+
"groups": [],
335+
"path": "",
336+
"path_raw": "",
337+
"pathname": "/Org/Repo",
338+
"branch": "",
339+
"protocol": "https",
340+
"protocols": ["https"],
341+
"platform": "bitbucket",
342+
},
343+
),
344+
),
276345
# Gitlab
277346
(
278347
"SSH",

0 commit comments

Comments
 (0)