Skip to content

Commit

Permalink
Added test
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecarleitao committed Jan 29, 2024
1 parent d883ccf commit 73e7d6a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#[forbid(unsafe_code)]
mod aircraft_db;
mod aircraft_owners;
mod aircraft_types;
Expand Down
8 changes: 8 additions & 0 deletions tests/it/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,11 @@ async fn airports() -> Result<(), Box<dyn Error>> {
assert_eq!(airport.name, "Aalborg Airport");
Ok(())
}

#[tokio::test]
async fn loads() -> Result<(), Box<dyn Error>> {
let _ = flights::load_aircraft_owners()?;
let _ = flights::load_private_jet_types()?;
let _ = flights::load_owners()?;
Ok(())
}

0 comments on commit 73e7d6a

Please sign in to comment.