Tests: options moved to the separate class.
This change is necessary to separate the logic and prevent possible circular dependency.
This commit is contained in:
16
test/unit/option.py
Normal file
16
test/unit/option.py
Normal file
@@ -0,0 +1,16 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user