diff --git a/src/sh_edraft/publishing/publisher.py b/src/sh_edraft/publishing/publisher.py index 6fcc54a0..1e7f55e6 100644 --- a/src/sh_edraft/publishing/publisher.py +++ b/src/sh_edraft/publishing/publisher.py @@ -109,7 +109,7 @@ class Publisher(PublisherBase): for file in self._publish_settings.included_files: if os.path.basename(file) == '__init__.py' and file not in self._publish_settings.excluded_files: template_name = template.name - if template.name == '*' or template.name == '': + if template.name == 'all' or template.name == '': template_name = self._get_template_name_from_dirs(file) else: name = self._get_template_name_from_dirs(file) diff --git a/src/tests/publishing/publisher.py b/src/tests/publishing/publisher.py index d0f5f1f4..427fa686 100644 --- a/src/tests/publishing/publisher.py +++ b/src/tests/publishing/publisher.py @@ -36,8 +36,8 @@ class PublisherTest(unittest.TestCase): self._version = Version(2020, 12, 5).to_dict() templates = [ Template( - '../../publish_templates/*_template.txt', - '*', + '../../publish_templates/all_template.txt', + 'all', '', '', '2020', @@ -49,7 +49,7 @@ class PublisherTest(unittest.TestCase): self._version ), Template( - '../../publish_templates/*_template.txt', + '../../publish_templates/all_template.txt', 'sh_edraft', 'common python library', 'Library to share common classes and models used at sh-edraft.de',