0001-hobo-set-theme-if-undefined-10441.patch
tests/test_hobo.py | ||
---|---|---|
240 | 240 |
assert pub.cfg['misc']['sitename'] == 'Test wcs' |
241 | 241 |
assert pub.cfg['emails']['footer'] == 'Hello world.' |
242 | 242 |
assert pub.cfg['emails']['from'] == 'noreply@example.net' |
243 |
assert pub.cfg['branding']['theme'] == 'publik' |
|
243 | 244 | |
244 | 245 |
def test_update_profile(): |
245 | 246 |
profile = HOBO_JSON.get('profile') |
wcs/ctl/check_hobos.py | ||
---|---|---|
139 | 139 |
if not pub.cfg.get('emails'): |
140 | 140 |
pub.cfg['emails'] = {} |
141 | 141 | |
142 |
if not pub.cfg.get('branding'): |
|
143 |
pub.cfg['branding'] = {'theme': 'publik'} |
|
144 | ||
142 | 145 |
variables = self.all_services.get('variables') or {} |
143 | 146 |
variables.update(service.get('variables') or {}) |
144 | 147 |
if variables.get('default_from_email'): |
145 |
- |