def test_update_password(self, update_user):
        instance = DjangoCredentialRepository()

        credential = Credential('john.smith', uuid=UUID_MOCK)
        credential.set_password('P@ssw0rd')
        credential = instance.update_password(credential)

        assert bool(credential.password) is True
示例#2
0
 def _factory_credential(self) -> Credential:
     instance = Credential(self.__username)
     instance.set_password(self.__password)
     return instance