diff --git a/website_require_login/README.rst b/website_require_login/README.rst index a6275185f5..9f261bed93 100644 --- a/website_require_login/README.rst +++ b/website_require_login/README.rst @@ -68,6 +68,7 @@ Contributors ------------ - Ooops404 +- Nils Coenen Maintainers ----------- diff --git a/website_require_login/__manifest__.py b/website_require_login/__manifest__.py index b93f320c18..e2e89e8aff 100644 --- a/website_require_login/__manifest__.py +++ b/website_require_login/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Website Login Required", "category": "Website", - "version": "16.0.1.0.0", + "version": "17.0.1.0.0", "author": "Advitus MB, Ooops, Odoo Community Association (OCA)", "website": "https://github.com/OCA/website", "license": "LGPL-3", diff --git a/website_require_login/readme/CONTRIBUTORS.md b/website_require_login/readme/CONTRIBUTORS.md index 66ff19fe11..0642e006e3 100644 --- a/website_require_login/readme/CONTRIBUTORS.md +++ b/website_require_login/readme/CONTRIBUTORS.md @@ -1 +1,2 @@ - Ooops404 \<\> +- Nils Coenen \<\> diff --git a/website_require_login/static/description/index.html b/website_require_login/static/description/index.html index 39a65b3b46..2e57cc966f 100644 --- a/website_require_login/static/description/index.html +++ b/website_require_login/static/description/index.html @@ -413,6 +413,7 @@

Authors

Contributors

diff --git a/website_require_login/tests/test_ir_http.py b/website_require_login/tests/test_ir_http.py index ed172189b4..b599e46b32 100644 --- a/website_require_login/tests/test_ir_http.py +++ b/website_require_login/tests/test_ir_http.py @@ -2,17 +2,18 @@ class TestIrHttp(HttpCase): - def setUp(self): - super().setUp() - self.website = self.env["website"].sudo().get_current_website() - self.auth_url = self.env["website.auth.url"].create( - {"website_id": self.website.id, "path": "/contactus"} + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.website = cls.env["website"].sudo().get_current_website() + cls.auth_url = cls.env["website.auth.url"].create( + {"website_id": cls.website.id, "path": "/contactus"} ) - self.user = self.env["res.users"].create( + cls.user = cls.env["res.users"].create( {"name": "Test User", "login": "test_user", "password": "12345"} ) - self.path = "/contactus" - self.expected_path = "/web/login?redirect=%s" % self.path + cls.path = "/contactus" + cls.expected_path = "/web/login?redirect=%s" % cls.path def test_dispatch_unauthorized(self): # Test that a public user cannot access "/auth_path