mirror of
https://github.com/YunoHost-Apps/django_example_ynh.git
synced 2024-09-03 18:26:21 +02:00
Smal bugfixes and update test snapshots
This commit is contained in:
parent
9b9164c6da
commit
063a6124f3
3 changed files with 19 additions and 14 deletions
|
@ -5,14 +5,14 @@
|
||||||
"description": {
|
"description": {
|
||||||
"en": "Demo YunoHost Application to demonstrate the integration of a Django project under YunoHost."
|
"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",
|
"url": "https://github.com/YunoHost-Apps/django_example_ynh",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"website": "https://github.com/YunoHost-Apps/django_example_ynh",
|
"website": "https://github.com/YunoHost-Apps/django_example_ynh",
|
||||||
"admindoc": "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",
|
"userdoc": "https://github.com/jedie/django-example",
|
||||||
|
"code": "https://github.com/YunoHost-Apps/django_example_ynh"
|
||||||
},
|
},
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
|
|
|
@ -20,15 +20,20 @@
|
||||||
<!-- Content -->
|
<!-- Content -->
|
||||||
<div class="colM" id="content">
|
<div class="colM" id="content">
|
||||||
<h2>
|
<h2>
|
||||||
YunoHost Django Example Project v0.1.0rc0
|
YunoHost Django Example Project v0.2.0
|
||||||
</h2>
|
</h2>
|
||||||
<p>
|
<ul>
|
||||||
Go to
|
<li>
|
||||||
<a href="/app_path/admin/">
|
<a href="/app_path/admin/">
|
||||||
Django Admin
|
Django Admin
|
||||||
</a>
|
</a>
|
||||||
.
|
</li>
|
||||||
</p>
|
<li>
|
||||||
|
<a href="/app_path/login-required/">
|
||||||
|
Test Login Required View
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
<p>
|
<p>
|
||||||
Log in to see more information
|
Log in to see more information
|
||||||
</p>
|
</p>
|
||||||
|
@ -142,7 +147,7 @@
|
||||||
<!-- END Content -->
|
<!-- END Content -->
|
||||||
<hr/>
|
<hr/>
|
||||||
<p>
|
<p>
|
||||||
<a href="https://github.com/jedie/django-example">
|
<a href="https://github.com/jedie/django_example">
|
||||||
github.com/jedie/django_example
|
github.com/jedie/django_example
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -33,9 +33,9 @@ def test_version():
|
||||||
pyproject_toml_path = Path(PACKAGE_ROOT, 'pyproject.toml')
|
pyproject_toml_path = Path(PACKAGE_ROOT, 'pyproject.toml')
|
||||||
pyproject_toml = tomli.loads(pyproject_toml_path.read_text(encoding='UTF-8'))
|
pyproject_toml = tomli.loads(pyproject_toml_path.read_text(encoding='UTF-8'))
|
||||||
pyproject_version = pyproject_toml['tool']['poetry']['version']
|
pyproject_version = pyproject_toml['tool']['poetry']['version']
|
||||||
assert pyproject_version.startswith(f'{__version__}+ynh'), (
|
assert pyproject_version.startswith(
|
||||||
f'{pyproject_version!r} does not start with "{__version__}+ynh"'
|
f'{__version__}+ynh'
|
||||||
)
|
), f'{pyproject_version!r} does not start with "{__version__}+ynh"'
|
||||||
|
|
||||||
# pyproject.toml needs a PEP 440 conform version and used "+ynh"
|
# pyproject.toml needs a PEP 440 conform version and used "+ynh"
|
||||||
# the YunoHost syntax is: "~ynh", just "convert this:
|
# the YunoHost syntax is: "~ynh", just "convert this:
|
||||||
|
|
Loading…
Add table
Reference in a new issue