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