From 063a6124f324f68bd89c2d81e9c2f1c1c880fb0c Mon Sep 17 00:00:00 2001 From: Jens Diemer Date: Wed, 21 Dec 2022 19:27:05 +0100 Subject: [PATCH] Smal bugfixes and update test snapshots --- manifest.json | 4 ++-- .../test_example_project_urls_1.snapshot.html | 23 +++++++++++-------- tests/test_project_setup.py | 6 ++--- 3 files changed, 19 insertions(+), 14 deletions(-) diff --git a/manifest.json b/manifest.json index 7db95b5..26b3961 100644 --- a/manifest.json +++ b/manifest.json @@ -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": { diff --git a/tests/test_example_project_urls_1.snapshot.html b/tests/test_example_project_urls_1.snapshot.html index 4dd2e82..9d7d4ce 100644 --- a/tests/test_example_project_urls_1.snapshot.html +++ b/tests/test_example_project_urls_1.snapshot.html @@ -20,15 +20,20 @@

- YunoHost Django Example Project v0.1.0rc0 + YunoHost Django Example Project v0.2.0

-

- Go to - - Django Admin - - . -

+

Log in to see more information

@@ -142,7 +147,7 @@

- + github.com/jedie/django_example

diff --git a/tests/test_project_setup.py b/tests/test_project_setup.py index feff773..19e21b9 100644 --- a/tests/test_project_setup.py +++ b/tests/test_project_setup.py @@ -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: