Skip to content

Commit

Permalink
Add basic test infrastructure and two simple team tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kobzol authored and Mark-Simulacrum committed Jan 20, 2024
1 parent eaa9730 commit a07d977
Show file tree
Hide file tree
Showing 6 changed files with 454 additions and 11 deletions.
218 changes: 208 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ serde_json = "1.0"

[dev-dependencies]
indexmap = "2.1.0"
derive_builder = "0.12.0"
insta = "1.34.0"
2 changes: 1 addition & 1 deletion src/github/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ impl GraphPageInfo {
}
}

#[derive(serde::Deserialize, Debug)]
#[derive(serde::Deserialize, Debug, Clone)]
pub(crate) struct Team {
/// The ID returned by the GitHub API can't be empty, but the None marks teams "created" during
/// a dry run and not actually present on GitHub, so other methods can avoid acting on them.
Expand Down
Loading

0 comments on commit a07d977

Please sign in to comment.