tests/system/action/base.py
def login(self, user_id: int) -> None:
        """
        Login the given user by fetching the default password from the datastore.
        """
        user = self.get_model(f"user/{user_id}")
        assert user.get("default_password")
        self.client.login(user["username"], user["default_password"])
        self.vote_service.set_authentication(self.client.headers, self.client.cookies)

        Login the given user by fetching the default password from the datastore.
        
Login the given user by fetching the default password from the datastore.
Login the given user by fetching the default password from the datastore .
def login(self, user_id: int) -> None:
        user = self.get_model(f"user/{user_id}")
        assert user.get("default_password")
        self.client.login(user["username"], user["default_password"])
        self.vote_service.set_authentication(self.client.headers, self.client.cookies)
def login ( self , user_id : int ) -> None : user = self . get_model ( f"user/{user_id}" ) assert user . get ( "default_password" ) self . client . login ( user [ "username" ] , user [ "default_password" ] ) self . vote_service . set_authentication ( self . client . headers , self . client . cookies )
Login the given user by fetching the default password from the datastore.
Login the given user by fetching the default password from the datastore .
"""
        Login the given user by fetching the default password from the datastore.
        """
self
user_id
int