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
def _factory_credential(self) -> Credential: instance = Credential(self.__username) instance.set_password(self.__password) return instance