def failure_case(self, path: str, token: str = None, detail=""):
     return assert_get_response(
         client=self.client,
         endpoint=path,
         token=token,
         status_code=403,
         detail=detail,
     )
Exemple #2
0
 def failure_case(self,
                  path: str,
                  token: str = "",
                  detail: str = "",
                  status=401) -> Response:
     return assert_get_response(
         client=self.client,
         endpoint=path,
         token=token,
         status_code=status,
         detail=detail,
     )
 def success_case(self, path: str, token: str = None):
     return assert_get_response(
         client=self.client, endpoint=path, token=token, status_code=200
     )