This commit is contained in:
Sven Heidemann 2020-11-26 10:36:49 +01:00
parent 25f0aeedab
commit ff2a7d9693
2 changed files with 4 additions and 4 deletions

View File

@ -109,7 +109,7 @@ class Publisher(PublisherBase):
for file in self._publish_settings.included_files: for file in self._publish_settings.included_files:
if os.path.basename(file) == '__init__.py' and file not in self._publish_settings.excluded_files: if os.path.basename(file) == '__init__.py' and file not in self._publish_settings.excluded_files:
template_name = template.name 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) template_name = self._get_template_name_from_dirs(file)
else: else:
name = self._get_template_name_from_dirs(file) name = self._get_template_name_from_dirs(file)

View File

@ -36,8 +36,8 @@ class PublisherTest(unittest.TestCase):
self._version = Version(2020, 12, 5).to_dict() self._version = Version(2020, 12, 5).to_dict()
templates = [ templates = [
Template( Template(
'../../publish_templates/*_template.txt', '../../publish_templates/all_template.txt',
'*', 'all',
'', '',
'', '',
'2020', '2020',
@ -49,7 +49,7 @@ class PublisherTest(unittest.TestCase):
self._version self._version
), ),
Template( Template(
'../../publish_templates/*_template.txt', '../../publish_templates/all_template.txt',
'sh_edraft', 'sh_edraft',
'common python library', 'common python library',
'Library to share common classes and models used at sh-edraft.de', 'Library to share common classes and models used at sh-edraft.de',