summaryrefslogtreecommitdiffhomepage
path: root/test/unit/option.py
blob: cb3803dca0c67d9d3eea2b813bea34f226c219fd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class Options:
    _options = {
        'skip_alerts': [],
        'skip_sanitizer': False,
    }

    def __setattr__(self, name, value):
        Options._options[name] = value

    def __getattr__(self, name):
        if name in Options._options:
            return Options._options[name]

        raise AttributeError


option = Options()