hobo_deploy: simplify get_theme function on hobo_deploy.py (#33592)
This commit is contained in:
parent
43c082bf3b
commit
e5ede8832e
|
@ -147,8 +147,6 @@ class Command(BaseCommand):
|
||||||
theme = get_theme(theme_id)
|
theme = get_theme(theme_id)
|
||||||
if not theme:
|
if not theme:
|
||||||
return
|
return
|
||||||
if not theme.get('module'):
|
|
||||||
return
|
|
||||||
return theme
|
return theme
|
||||||
|
|
||||||
def configure_theme(self, hobo_environment, tenant):
|
def configure_theme(self, hobo_environment, tenant):
|
||||||
|
|
|
@ -323,9 +323,6 @@ def test_get_theme(fake_themes):
|
||||||
command.me = HOBO
|
command.me = HOBO
|
||||||
assert command.get_theme(ENVIRONMENT) is None
|
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):
|
def test_configure_theme(fake_themes, tmpdir):
|
||||||
"""make symlink for TENANT/theme
|
"""make symlink for TENANT/theme
|
||||||
|
|
Loading…
Reference in New Issue