()
| 859 | tokens = iter([json_crew.AuthError("No token found"), "integration-token"]) |
| 860 | |
| 861 | def get_token() -> str: |
| 862 | token = next(tokens) |
| 863 | if isinstance(token, Exception): |
| 864 | raise token |
| 865 | return token |
| 866 | |
| 867 | monkeypatch.setattr( |
| 868 | json_crew, |