robottelo.config.casts
¶
Configuration casts to help typing the settings.
Module Contents¶
Classes¶
Cast a string to boolean. |
|
Cast a comma separated string to a list. |
|
Cast a string to a logging level. |
|
Cast a comma separated string to a tuple. |
|
Cast a comma separated list of key=value to a dict. |
|
Cast a comma separated list of key=value to a |
- class robottelo.config.casts.Boolean¶
Cast a string to boolean.
String values 1, yes, true, on will result in python’s
True
. String values 0, no, false, off will result in python’sFalse
.- Parameters
value (str) – A string to cast to boolean.
- _booleans¶
- __call__(self, value)¶
- class robottelo.config.casts.List¶
Cast a comma separated string to a list.
- Parameters
value (str) – A comma separated string to cast to a list.
- __call__(self, value)¶
- class robottelo.config.casts.LoggingLevel¶
Cast a string to a logging level.
- Parameters
value (str) – A string to cast to a logging level.
- _logging_levels¶
- __call__(self, value)¶
- class robottelo.config.casts.Tuple¶
Bases:
List
Cast a comma separated string to a tuple.
- Parameters
value (str) – A comma separated string to cast to a tuple.
- __call__(self, value)¶
- class robottelo.config.casts.Dict¶
Bases:
List
Cast a comma separated list of key=value to a dict.
- Parameters
value (str) – A comma separated string to cast to a dict.
- __call__(self, value)¶
- class robottelo.config.casts.WebdriverDesiredCapabilities¶
Bases:
Dict
Cast a comma separated list of key=value to a webdriver.DesiredCapabilities dict.
Convert values
true
andfalse
(ignore case) to a proper boolean.- Parameters
value (str) – A comma separated string to cast to a webdriver.DesiredCapabilities dict.
- __call__(self, value)¶