From bb4fb002a6dbe465aee477deeda7ce4345b1e0e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 27 Jan 2015 18:13:36 +0100 Subject: [PATCH] Add check for default model access When group access exists, a default model access should be defined otherwise all access are given to non group users. issue4485 review5941002 --- tests/test_ldap_authentication.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/tests/test_ldap_authentication.py b/tests/test_ldap_authentication.py index 0a4859d3cd..222459ee71 100644 --- a/tests/test_ldap_authentication.py +++ b/tests/test_ldap_authentication.py @@ -6,7 +6,7 @@ from mock import patch import ldap import trytond.tests.test_tryton -from trytond.tests.test_tryton import test_depends +from trytond.tests.test_tryton import ModuleTestCase from trytond.tests.test_tryton import POOL, DB_NAME, USER, CONTEXT from trytond.transaction import Transaction from trytond.config import config @@ -16,21 +16,18 @@ from trytond.modules.ldap_authentication.res import parse_ldap_url section = 'ldap_authentication' -class LDAPAuthenticationTestCase(unittest.TestCase): +class LDAPAuthenticationTestCase(ModuleTestCase): 'Test LDAPAuthentication module' + module = 'ldap_authentication' def setUp(self): - trytond.tests.test_tryton.install_module('ldap_authentication') + super(LDAPAuthenticationTestCase, self).setUp() config.add_section(section) config.set(section, 'uri', 'ldap://localhost/dc=tryton,dc=org') def tearDown(self): config.remove_section(section) - def test0006depends(self): - 'Test depends' - test_depends() - def test_user_get_login(self): 'Test User.get_login' with Transaction().start(DB_NAME, USER, context=CONTEXT):