Skip to content

Commit adb2d01

Browse files
committed
Added full path parse_host unit test
1 parent 570693c commit adb2d01

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/utils_test.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ def test_parse_host(self):
7272
'': 'http+unix://var/run/docker.sock',
7373
None: 'http+unix://var/run/docker.sock',
7474
'unix:///var/run/docker.sock': 'http+unix:///var/run/docker.sock',
75-
'unix://': 'http+unix://var/run/docker.sock'
75+
'unix://': 'http+unix://var/run/docker.sock',
76+
'somehost.net:80/service/swarm': (
77+
'http://somehost.net:80/service/swarm'
78+
),
7679
}
7780

7881
for host in invalid_hosts:

0 commit comments

Comments
 (0)