Skip to content

Commit

Permalink
Field and test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad1slav committed Nov 9, 2024
1 parent 0762fdf commit d22fda5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/models/repos/secret_scanning_alert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use super::super::*;
pub struct SecretScanningAlert {
pub number: i64,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub updated_at: Option<DateTime<Utc>>,
pub url: Url,
pub html_url: Url,
pub locations_url: Url,
Expand Down
2 changes: 1 addition & 1 deletion tests/dependabot_alerts_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ fn setup_octocrab(uri: &str) -> Octocrab {
}

#[tokio::test]
async fn check_list_200() {
async fn check_dependabot_alerts_list_200() {
let s = include_str!("resources/check_dependabot_alerts.json");
let alert: Vec<DependabotAlert> = serde_json::from_str(s).unwrap();
let template = ResponseTemplate::new(200).set_body_json(&alert);
Expand Down
2 changes: 1 addition & 1 deletion tests/secrets_alerts_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ fn setup_octocrab(uri: &str) -> Octocrab {
}

#[tokio::test]
async fn check_list_200() {
async fn check_secrets_alert_list_200() {
let s: &str = include_str!("resources/check_secrets_alerts.json");
let alert: Vec<SecretScanningAlert> = serde_json::from_str(s).unwrap();
let template = ResponseTemplate::new(200).set_body_json(&alert);
Expand Down

0 comments on commit d22fda5

Please sign in to comment.