automatons_github/testing/client.rs
1use crate::client::{GitHubClient, PrivateKey};
2use crate::resource::{AppId, InstallationId};
3
4pub fn github_client() -> GitHubClient {
5 GitHubClient::new(
6 mockito::server_url().into(),
7 AppId::new(1),
8 PrivateKey::new(include_str!("../../tests/fixtures/private-key.pem")),
9 InstallationId::new(1),
10 )
11}