Smal bugfixes and update test snapshots

This commit is contained in:
Jens Diemer 2022-12-21 19:27:05 +01:00
parent 9b9164c6da
commit 063a6124f3
3 changed files with 19 additions and 14 deletions

View file

@ -5,14 +5,14 @@
"description": {
"en": "Demo YunoHost Application to demonstrate the integration of a Django project under YunoHost."
},
"version": "0.1.0rc0~ynh1",
"version": "0.2.0~ynh1",
"url": "https://github.com/YunoHost-Apps/django_example_ynh",
"upstream": {
"license": "GPL-3.0",
"website": "https://github.com/YunoHost-Apps/django_example_ynh",
"admindoc": "https://github.com/YunoHost-Apps/django_example_ynh",
"code": "https://github.com/YunoHost-Apps/django_example_ynh"
"userdoc": "https://github.com/jedie/django-example",
"code": "https://github.com/YunoHost-Apps/django_example_ynh"
},
"license": "GPL-3.0",
"maintainer": {

View file

@ -20,15 +20,20 @@
<!-- Content -->
<div class="colM" id="content">
<h2>
YunoHost Django Example Project v0.1.0rc0
YunoHost Django Example Project v0.2.0
</h2>
<p>
Go to
<a href="/app_path/admin/">
Django Admin
</a>
.
</p>
<ul>
<li>
<a href="/app_path/admin/">
Django Admin
</a>
</li>
<li>
<a href="/app_path/login-required/">
Test Login Required View
</a>
</li>
</ul>
<p>
Log in to see more information
</p>
@ -142,7 +147,7 @@
<!-- END Content -->
<hr/>
<p>
<a href="https://github.com/jedie/django-example">
<a href="https://github.com/jedie/django_example">
github.com/jedie/django_example
</a>
</p>

View file

@ -33,9 +33,9 @@ def test_version():
pyproject_toml_path = Path(PACKAGE_ROOT, 'pyproject.toml')
pyproject_toml = tomli.loads(pyproject_toml_path.read_text(encoding='UTF-8'))
pyproject_version = pyproject_toml['tool']['poetry']['version']
assert pyproject_version.startswith(f'{__version__}+ynh'), (
f'{pyproject_version!r} does not start with "{__version__}+ynh"'
)
assert pyproject_version.startswith(
f'{__version__}+ynh'
), f'{pyproject_version!r} does not start with "{__version__}+ynh"'
# pyproject.toml needs a PEP 440 conform version and used "+ynh"
# the YunoHost syntax is: "~ynh", just "convert this: