summaryrefslogtreecommitdiffstats
path: root/functest/utils/constants.py
blob: c19e0fc524b23228a72db1b0b8e2ccf3b84ca954 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env python

# pylint: disable=missing-docstring

import six

from functest.utils import config
from functest.utils import env


class Constants(object):  # pylint: disable=too-few-public-methods

    def __init__(self):
        for attr_n, attr_v in six.iteritems(config.CONF.__dict__):
            setattr(self, attr_n, attr_v)
        for env_n, env_v in six.iteritems(env.ENV.__dict__):
            setattr(self, env_n, env_v)


CONST = Constants()