hobo_deploy: simplify get_theme function on hobo_deploy.py (#33592)

This commit is contained in:
Nicolas Roche 2019-05-31 12:07:00 +02:00
parent 43c082bf3b
commit e5ede8832e
2 changed files with 0 additions and 5 deletions

View File

@ -147,8 +147,6 @@ class Command(BaseCommand):
theme = get_theme(theme_id)
if not theme:
return
if not theme.get('module'):
return
return theme
def configure_theme(self, hobo_environment, tenant):

View File

@ -323,9 +323,6 @@ def test_get_theme(fake_themes):
command.me = HOBO
assert command.get_theme(ENVIRONMENT) is None
# can't test last return case as it could never append
# if not theme.get('module'): # TODO: dead code to remove
def test_configure_theme(fake_themes, tmpdir):
"""make symlink for TENANT/theme