mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-22 09:24:21 +01:00
fix on unit tests for roles
This commit is contained in:
parent
2d1fdfe1da
commit
89e8e2aac0
@ -7,7 +7,6 @@ users2:
|
||||
- backend_name: ad
|
||||
groups:
|
||||
- Domain Users
|
||||
|
||||
users:
|
||||
diplay_name: Simple Users
|
||||
LC_admins: True
|
||||
|
@ -13,7 +13,6 @@ admin-lv3:
|
||||
- Domain Users
|
||||
- Administrators
|
||||
- Domain Controllers
|
||||
|
||||
admin-lv2:
|
||||
display_name: Administrators Level 2
|
||||
backends:
|
||||
@ -24,7 +23,6 @@ admin-lv2:
|
||||
- backend_name: ad
|
||||
groups:
|
||||
- Domain Users
|
||||
|
||||
developpers:
|
||||
backends:
|
||||
- backend_name: ldap
|
||||
@ -35,7 +33,6 @@ developpers:
|
||||
- backend_name: ad
|
||||
groups:
|
||||
- Domain Users
|
||||
|
||||
users:
|
||||
diplay_name: Simple Users
|
||||
backends:
|
||||
|
@ -7,6 +7,7 @@ from __future__ import unicode_literals
|
||||
import pytest
|
||||
import sys
|
||||
from ldapcherry.roles import Roles
|
||||
from ldapcherry.exceptions import DumplicateRoleKey, MissingKey, DumplicateRoleContent
|
||||
from ldapcherry.pyyamlwrapper import DumplicatedKey, RelationError
|
||||
|
||||
|
||||
@ -19,7 +20,7 @@ class TestError(object):
|
||||
|
||||
def testMissingDisplayName(self):
|
||||
try:
|
||||
inv = Roles('./cfg/roles_missing_diplay_name.yml')
|
||||
inv = Roles('./tests/cfg/roles_missing_diplay_name.yml')
|
||||
except MissingKey:
|
||||
return
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user