1 ##############################################################################
2 # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
12 import vstf.controller.settings.settings as sets
14 LOG = logging.getLogger(__name__)
17 class HtmlSettings(sets.Settings):
22 filename="reporters.html-settings",
23 mode=sets.SETS_DEFAULT):
24 super(HtmlSettings, self).__init__(path, filename, mode)
28 from vstf.common.log import setup_logging
31 log_file="/var/log/html-settings.log",
33 html_settings = HtmlSettings()
36 'font-family': '"Trebuchet MS", Arial, Helvetica, sans-serif',
37 'border-collapse': 'collapse',
38 'border': '1px solid green',
40 'text-align': 'center'
44 'border': '1px solid green',
46 'word-wrap': 'break-all'
50 'background-color': '#EAF2D3',
51 'border': '1px solid green',
56 html_settings.set_style(style)
57 LOG.info(html_settings.settings)
60 if __name__ == '__main__':