mirror of
https://github.com/YunoHost-Apps/pyinventory_ynh.git
synced 2024-09-03 20:16:09 +02:00
commit
877e54a8db
5 changed files with 10 additions and 10 deletions
|
@ -1,6 +1,6 @@
|
|||
# PyInventory for YunoHost
|
||||
|
||||
[](https://dash.yunohost.org/appci/app/pyinventory) [](https://ci-apps.yunohost.org/ci/apps/pyinventory/) [](https://dash.yunohost.org/appci/app/pyinventory)
|
||||
[](https://dash.yunohost.org/appci/app/pyinventory) [](https://ci-apps.yunohost.org/ci/apps/pyinventory/) [](https://dash.yunohost.org/appci/app/pyinventory)
|
||||
|
||||
[](https://github.com/YunoHost-Apps/pyinventory_ynh/actions/workflows/pytest.yml) [](https://github.com/YunoHost-Apps/pyinventory_ynh/actions/workflows/package_linter.yml) [](https://codecov.io/gh/YunoHost-Apps/pyinventory_ynh)
|
||||
|
||||
|
@ -79,7 +79,7 @@ To check the effective settings, run this:
|
|||
|
||||
## SSO authentication
|
||||
|
||||
[SSOwat](https://github.com/YunoHost/SSOwat) is fully supported via [django_ynh](https://github.com/YunoHost-Apps/django_ynh):
|
||||
[SSOwat](https://github.com/YunoHost/SSOwat) is fully supported via [django-yunohost-integration](https://github.com/YunoHost-Apps/django_yunohost_integration):
|
||||
|
||||
* First user (`$YNH_APP_ARG_ADMIN`) will be created as Django's super user
|
||||
* All new users will be created as normal users
|
||||
|
|
|
@ -174,7 +174,7 @@ LOGGING = {
|
|||
'django': {'handlers': ['log_file', 'mail_admins'], 'level': 'INFO', 'propagate': False},
|
||||
'axes': {'handlers': ['log_file', 'mail_admins'], 'level': 'WARNING', 'propagate': False},
|
||||
'django_tools': {'handlers': ['log_file', 'mail_admins'], 'level': 'INFO', 'propagate': False},
|
||||
'django_ynh': {'handlers': ['log_file', 'mail_admins'], 'level': 'INFO', 'propagate': False},
|
||||
'django_yunohost_integration': {'handlers': ['log_file', 'mail_admins'], 'level': 'INFO', 'propagate': False},
|
||||
'inventory': {'handlers': ['log_file', 'mail_admins'], 'level': 'INFO', 'propagate': False},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"description": {
|
||||
"en": "Web based management to catalog things including state and location etc."
|
||||
},
|
||||
"version": "0.13.0~ynh2",
|
||||
"version": "0.13.0~ynh3",
|
||||
"url": "https://github.com/jedie/PyInventory",
|
||||
"license": "GPL-3.0",
|
||||
"maintainer": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[tool.poetry]
|
||||
name = "pyinventory_ynh"
|
||||
version = "0.13.0~ynh2"
|
||||
version = "0.13.0~ynh3"
|
||||
description = "Test pyinventory_ynh via local_test.py"
|
||||
authors = ["JensDiemer <git@jensdiemer.de>"]
|
||||
license = "GPL"
|
||||
|
|
|
@ -42,7 +42,7 @@ class DjangoYnhTestCase(HtmlAssertionMixin, TestCase):
|
|||
def test_urls(self):
|
||||
assert reverse('admin:index') == '/app_path/'
|
||||
|
||||
# The django_ynh debug view should not be avaiable:
|
||||
# The django_yunohost_integration debug view should not be available:
|
||||
with self.assertRaises(NoReverseMatch):
|
||||
reverse(request_media_debug_view)
|
||||
|
||||
|
@ -83,7 +83,7 @@ class DjangoYnhTestCase(HtmlAssertionMixin, TestCase):
|
|||
user = User.objects.first()
|
||||
assert user.username == 'test'
|
||||
assert user.is_active is True
|
||||
assert user.is_staff is True # Set by: conf.django_ynh_demo_urls.setup_user_handler
|
||||
assert user.is_staff is True # Set by: django_yunohost_integration
|
||||
assert user.is_superuser is False
|
||||
|
||||
assert response.status_code == 200
|
||||
|
@ -113,7 +113,7 @@ class DjangoYnhTestCase(HtmlAssertionMixin, TestCase):
|
|||
user = User.objects.first()
|
||||
assert user.username == 'test'
|
||||
assert user.is_active is True
|
||||
assert user.is_staff is True # Set by: conf.django_ynh_demo_urls.setup_user_handler
|
||||
assert user.is_staff is True # Set by: django_yunohost_integration
|
||||
assert user.is_superuser is False
|
||||
|
||||
assert AccessLog.objects.count() == 1
|
||||
|
@ -138,7 +138,7 @@ class DjangoYnhTestCase(HtmlAssertionMixin, TestCase):
|
|||
user = User.objects.first()
|
||||
assert user.username == 'test'
|
||||
assert user.is_active is True
|
||||
assert user.is_staff is True # Set by: conf.django_ynh_demo_urls.setup_user_handler
|
||||
assert user.is_staff is True # Set by: django_yunohost_integration
|
||||
assert user.is_superuser is False
|
||||
|
||||
assert AccessLog.objects.count() == 1
|
||||
|
@ -162,7 +162,7 @@ class DjangoYnhTestCase(HtmlAssertionMixin, TestCase):
|
|||
user = User.objects.first()
|
||||
assert user.username == 'test'
|
||||
assert user.is_active is True
|
||||
assert user.is_staff is True # Set by: conf.django_ynh_demo_urls.setup_user_handler
|
||||
assert user.is_staff is True # Set by: django_yunohost_integration
|
||||
assert user.is_superuser is False
|
||||
|
||||
assert AccessLog.objects.count() == 1
|
||||
|
|
Loading…
Add table
Reference in a new issue