Exemplo n.º 1
0
 def test_registration_login(self):
     with app.app_context():
         user = Users(None, 'password1')
         assert user.registration('password1',
                                  1) == 'Заполните все поля!'
Exemplo n.º 2
0
 def test_registration_password(self):
     with app.app_context():
         user = Users('login1', 'password1')
         assert user.registration('password2',
                                  1) == 'Пароли не совпадают'
Exemplo n.º 3
0
 def test_registration(self):
     with app.app_context():
         user = Users('login1', 'password1')
         assert user.registration('password1', 1) == 'ok'