Improved the default theme.

Closes: #48
This commit is contained in:
Bastian Venthur
2023-06-13 16:29:44 +02:00
parent e1b1ebde32
commit fe268516e3
18 changed files with 515 additions and 43 deletions

View File

@@ -60,14 +60,13 @@ author = a. u. thor
"""
with TemporaryDirectory() as dir:
for d in 'content', 'build', 'static':
os.mkdir(f'{dir}/{d}')
os.mkdir(f'{dir}/build')
with open(f'{dir}/config.ini', 'w') as fh:
fh.write(config)
# change directory
old_cwd = os.getcwd()
os.chdir(dir)
quickstart.copy_templates()
quickstart.copy_default_theme()
yield dir
# and change back afterwards
os.chdir(old_cwd)

View File

@@ -70,7 +70,7 @@ def test_tag(tag_template: Template) -> None:
'archive': archive,
}
result = tag_template.render(ctx)
assert 'Tag foo' in result
assert 'foo' in result
assert 'this is a title' in result
assert '1980-05-09' in result