summaryrefslogtreecommitdiffstats
path: root/mod/distributorapi/tests/test_utils.py
diff options
context:
space:
mode:
authorHansen, Tony (th1395) <th1395@att.com>2022-08-05 22:16:14 +0000
committerHansen, Tony (th1395) <th1395@att.com>2022-08-17 22:10:23 +0000
commitc83d2369eb2f0ac40d5acd2db2d7350fe86101e5 (patch)
treed4549e4aca7248f63a0417d6718a1cfb8445a1ea /mod/distributorapi/tests/test_utils.py
parent2b31b78fb0c6621259898c3553187be4ab0acf8a (diff)
codecoverage improvement
Change-Id: I69cdb741c1e07a096ddd7c85921326070fb08a92 Signed-off-by: Hansen, Tony (th1395) <th1395@att.com> Issue-ID: DCAEGEN2-3170 Signed-off-by: Hansen, Tony (th1395) <th1395@att.com>
Diffstat (limited to 'mod/distributorapi/tests/test_utils.py')
-rw-r--r--mod/distributorapi/tests/test_utils.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/mod/distributorapi/tests/test_utils.py b/mod/distributorapi/tests/test_utils.py
index 481e325..f6530a3 100644
--- a/mod/distributorapi/tests/test_utils.py
+++ b/mod/distributorapi/tests/test_utils.py
@@ -1,5 +1,5 @@
# ============LICENSE_START=======================================================
-# Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
+# Copyright (c) 2019-2022 AT&T Intellectual Property. All rights reserved.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -16,9 +16,12 @@
from distributor import utils
+# more tests are in test_api.py
+
+
def test_urljoin():
assert "http://foo/bar/baz" == utils.urljoin("http://foo", "bar", "baz")
assert "http://foo/bar/baz" == utils.urljoin("http://foo/", "bar", "baz")
- assert "http://foo/bar/baz?name=some-name&version=1.5.0" \
- == utils.urljoin("http://foo", "bar", "baz", **{"name": "some-name",
- "version": "1.5.0"})
+ assert "http://foo/bar/baz?name=some-name&version=1.5.0" == utils.urljoin(
+ "http://foo", "bar", "baz", **{"name": "some-name", "version": "1.5.0"}
+ )