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:
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)

View File

@ -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',