##// END OF EJS Templates
tests: fix user/user groups schema tests
dan -
r741:e0edb849 default
parent child Browse files
Show More
@@ -22,6 +22,7 b' import colander'
22 import pytest
22 import pytest
23
23
24 from rhodecode.model import validation_schema
24 from rhodecode.model import validation_schema
25 from rhodecode.model.db import Session
25 from rhodecode.model.user import UserModel
26 from rhodecode.model.user import UserModel
26 from rhodecode.model.user_group import UserGroupModel
27 from rhodecode.model.user_group import UserGroupModel
27 from rhodecode.model.validation_schema.types import (
28 from rhodecode.model.validation_schema.types import (
@@ -72,8 +73,9 b' class TestUserAndUserGroupSchemaType(obj'
72 err = exc_info.value.asdict()
73 err = exc_info.value.asdict()
73 assert 'is both a user and usergroup' in err['user_or_usergroup']
74 assert 'is both a user and usergroup' in err['user_or_usergroup']
74 finally:
75 finally:
76 UserGroupModel().delete(usergroup)
77 Session().commit()
75 UserModel().delete(user)
78 UserModel().delete(user)
76 UserGroupModel().delete(usergroup)
77
79
78
80
79 class TestUserType(object):
81 class TestUserType(object):
General Comments 0
You need to be logged in to leave comments. Login now