tests/system/presenter/base.py
def request(
        self, presenter: str, data: Optional[Dict[str, Any]] = None
    ) -> Tuple[int, Any]:
        """
        Requests a single presenter and returns the status code and the json decoded
        response. Automatically removes array around response data.
        """
        payload: Dict[str, Any] = {"presenter": presenter}
        if data is not None:
            payload["data"] = data
        response = self.client.post(PRESENTER_URL, json=[payload])
        if isinstance(response.json, list) and len(response.json) == 1:
            return (response.status_code, response.json[0])
        return (response.status_code, response.json)

        Requests a single presenter and returns the status code and the json decoded
        response. Automatically removes array around response data.
        
Requests a single presenter and returns the status code and the json decoded
response. Automatically removes array around response data.
Requests a single presenter and returns the status code and the json decoded response . Automatically removes array around response data .
def request(
        self, presenter: str, data: Optional[Dict[str, Any]] = None
    ) -> Tuple[int, Any]:
        payload: Dict[str, Any] = {"presenter": presenter}
        if data is not None:
            payload["data"] = data
        response = self.client.post(PRESENTER_URL, json=[payload])
        if isinstance(response.json, list) and len(response.json) == 1:
            return (response.status_code, response.json[0])
        return (response.status_code, response.json)
def request ( self , presenter : str , data : Optional [ Dict [ str , Any ] ] = None ) -> Tuple [ int , Any ] : payload : Dict [ str , Any ] = { "presenter" : presenter } if data is not None : payload [ "data" ] = data response = self . client . post ( PRESENTER_URL , json = [ payload ] ) if isinstance ( response . json , list ) and len ( response . json ) == 1 : return ( response . status_code , response . json [ 0 ] ) return ( response . status_code , response . json )
Requests a single presenter and returns the status code and the json decoded
response.
Requests a single presenter and returns the status code and the json decoded response .
"""
        Requests a single presenter and returns the status code and the json decoded
        response. Automatically removes array around response data.
        """
self
presenter
str
data
Optional[Dict[str, Any]]