Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kobzol committed Mar 18, 2024
1 parent 6f067c4 commit 04ba69b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/github/tests/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ use derive_builder::Builder;
use rust_team_data::v1::{GitHubTeam, Person, TeamGitHub, TeamKind};

use crate::github::api::{
BranchProtection, GithubRead, Repo, RepoTeam, RepoUser, Team, TeamMember, TeamPrivacy, TeamRole,
BranchProtection, GithubRead, OrgAppInstallation, Repo, RepoAppInstallation, RepoTeam,
RepoUser, Team, TeamMember, TeamPrivacy, TeamRole,
};
use crate::github::{api, SyncGitHub, TeamDiff};

Expand Down Expand Up @@ -217,6 +218,17 @@ impl GithubRead for GithubMock {
.collect())
}

fn org_app_installations(&self, _org: &str) -> anyhow::Result<Vec<OrgAppInstallation>> {
Ok(vec![])
}

fn app_installation_repos(
&self,
_installation_id: u64,
) -> anyhow::Result<Vec<RepoAppInstallation>> {
Ok(vec![])
}

fn org_teams(&self, org: &str) -> anyhow::Result<Vec<(String, String)>> {
assert_eq!(org, DEFAULT_ORG);
Ok(self
Expand Down

0 comments on commit 04ba69b

Please sign in to comment.