소스 검색

Fix test user_password

Yentl Van Tendeloo 7 년 전
부모
커밋
07b058d0c4
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      unit/test_all.py

+ 2 - 2
unit/test_all.py

@@ -820,7 +820,7 @@ class TestModelverse(unittest.TestCase):
 
         # Check on folder "model"
         try:
-            user_password("users", "users2")
+            self.do_as_user("admin", user_password, ["users", "users2"])
             self.fail()
         except UnknownUser:
             pass
@@ -2557,7 +2557,7 @@ class TestModelverse(unittest.TestCase):
 
         # Check on folder "model"
         try:
-            undefine_attribute("users", "a", "b", True)
+            undefine_attribute("users", "a", "b")
             self.fail()
         except NotAModel:
             pass