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