From e5ede8832e7a2c54476d7fefc897e015ec947e96 Mon Sep 17 00:00:00 2001 From: Nicolas ROCHE Date: Fri, 31 May 2019 12:07:00 +0200 Subject: [PATCH] hobo_deploy: simplify get_theme function on hobo_deploy.py (#33592) --- hobo/agent/common/management/commands/hobo_deploy.py | 2 -- tests/test_hobo_deploy.py | 3 --- 2 files changed, 5 deletions(-) diff --git a/hobo/agent/common/management/commands/hobo_deploy.py b/hobo/agent/common/management/commands/hobo_deploy.py index e41ed96..ab43ec2 100644 --- a/hobo/agent/common/management/commands/hobo_deploy.py +++ b/hobo/agent/common/management/commands/hobo_deploy.py @@ -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): diff --git a/tests/test_hobo_deploy.py b/tests/test_hobo_deploy.py index fa06c93..ee94d50 100644 --- a/tests/test_hobo_deploy.py +++ b/tests/test_hobo_deploy.py @@ -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