website/tests/test_auth_signup_uninvited.py

14 lines
470 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo.tests import common, tagged
@tagged('-at_install', 'post_install')
class TestAuthSignupUninvited(common.TransactionCase):
def test_01_auth_signup_uninvited(self):
self.env['website'].browse(1).auth_signup_uninvited = 'b2c'
config = self.env['res.config.settings'].create({})
self.assertEqual(config.auth_signup_uninvited, 'b2c')