aboutsummaryrefslogtreecommitdiffstats
path: root/python_moonutilities/tests/unit_python/mock_repo/components_utilities.py
diff options
context:
space:
mode:
authorsgdt6900 <rhanafy.ext@orange.com>2018-01-03 16:54:18 +0200
committersgdt6900 <rhanafy.ext@orange.com>2018-01-03 17:09:50 +0200
commitc7b935cd626cb93876d72f6876eda1dd5c4d5be7 (patch)
treed1298468bc748c84a230caa781f37291db173f6f /python_moonutilities/tests/unit_python/mock_repo/components_utilities.py
parent681cfafb6a58757d2c56a135d909561d4a654a13 (diff)
adding more unit tests for configuration module
undo deleted exception by mistake Change-Id: I6c0246a938035f5542634e33311ad4b02973f67b Signed-off-by: sgdt6900 <rhanafy.ext@orange.com>
Diffstat (limited to 'python_moonutilities/tests/unit_python/mock_repo/components_utilities.py')
-rw-r--r--python_moonutilities/tests/unit_python/mock_repo/components_utilities.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python_moonutilities/tests/unit_python/mock_repo/components_utilities.py b/python_moonutilities/tests/unit_python/mock_repo/components_utilities.py
index 1d79d890..53c51343 100644
--- a/python_moonutilities/tests/unit_python/mock_repo/components_utilities.py
+++ b/python_moonutilities/tests/unit_python/mock_repo/components_utilities.py
@@ -134,3 +134,5 @@ def get_b64_conf(component=None):
return base64.b64encode(
json.dumps(
CONF[key1][key2]).encode('utf-8')+b"\n").decode('utf-8')
+ else:
+ return base64.b64encode(component.encode('utf-8')+b"\n").decode('utf-8')