ats_utilities.splash.splash_property module

Module
splash_property.py
Copyright
Copyright (C) 2021 Vladimir Roncevic <elektron.ronca@gmail.com> ats_utilities is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ats_utilities is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Info
Defined class SplashProperty with attribute(s) and method(s). Created API for checking splash property.
class ats_utilities.splash.splash_property.SplashProperty(property, verbose=False)[source]

Bases: object

Defined class SplashProperty with attribute(s) and method(s). Created API for checking splash property. It defines:

attributes:
__EXPECTED_PROPERY_KEYS - expected property names.
__verbose - enable/disable verbose option.
__property - splash property in dict format.
methods:
__init__ - initial constructor.
validation - validation of splash property.
__str__ - dunder method for SplashProperty.
VERBOSE = 'ats_utilities::splash::splash_property'
_SplashProperty__EXPECTED_PROPERY_KEYS = ['ats_organization', 'ats_repository', 'ats_name', 'ats_logo_path', 'ats_use_github_infrastructure']
validate(verbose=False)[source]

Validation of splash property.

Parameters:verbose (<bool>) – enable/disable verbose option.
Returns:Boolean status True - property ok else False.
Return type:<bool>
Exceptions:None