(self, username: str, password: str)
| 32 | """Middleware that adds Basic Authentication to all requests.""" |
| 33 | |
| 34 | def __init__(self, username: str, password: str) -> None: |
| 35 | self.username = username |
| 36 | self.password = password |
| 37 | self._auth_header = self._encode_credentials() |
| 38 | |
| 39 | def _encode_credentials(self) -> str: |
| 40 | """Encode username and password to base64.""" |
nothing calls this directly
no test coverage detected