diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2016-11-16 18:16:43 +0100 |
---|---|---|
committer | Morgan Richomme <morgan.richomme@orange.com> | 2016-11-17 09:27:08 +0100 |
commit | 9a810ff89ca61c3cd93d39d5fe9bd80a3eeaa282 (patch) | |
tree | 54de57f63d74b75eccf5d8d0d2c67ad21bc651a2 /reporting/tests/unit/utils | |
parent | c6126c34037424f5a1cb7c859f27eab2e60653c3 (diff) |
Refactor reporting dir
- dockerization
- create util function for all the test projects
- create a common config files
- add unit tests
- pep8
JIRA: RELENG-162
Change-Id: Ib209be4233084100ff238a7aeb2843ccc24a6f1e
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
Diffstat (limited to 'reporting/tests/unit/utils')
-rw-r--r-- | reporting/tests/unit/utils/__init__.py | 0 | ||||
-rw-r--r-- | reporting/tests/unit/utils/test_utils.py | 29 |
2 files changed, 29 insertions, 0 deletions
diff --git a/reporting/tests/unit/utils/__init__.py b/reporting/tests/unit/utils/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/reporting/tests/unit/utils/__init__.py diff --git a/reporting/tests/unit/utils/test_utils.py b/reporting/tests/unit/utils/test_utils.py new file mode 100644 index 0000000..b9c3980 --- /dev/null +++ b/reporting/tests/unit/utils/test_utils.py @@ -0,0 +1,29 @@ +#!/usr/bin/env python + +# Copyright (c) 2016 Orange and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 + +import logging +import unittest + +from utils import reporting_utils + + +class reportingUtilsTesting(unittest.TestCase): + + logging.disable(logging.CRITICAL) + + def setUp(self): + self.test = reporting_utils + + def test_getConfig(self): + self.assertEqual(self.test.get_config("general.period"), 10) +# TODO +# ... + +if __name__ == "__main__": + unittest.main(verbosity=2) |