Skip to content

Commit

Permalink
test: add duckdb_extensions() test
Browse files Browse the repository at this point in the history
  • Loading branch information
kysshsy committed Dec 18, 2024
1 parent 144d305 commit af11c74
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/tests/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,15 @@ async fn test_duckdb_settings(mut conn: PgConnection) -> Result<()> {

Ok(())
}

#[rstest]
async fn test_duckdb_extensions(mut conn: PgConnection) -> Result<()> {
let azure_extension: (Option<String>,) = "SELECT extension_name
FROM duckdb_extensions()
WHERE extension_name = 'azure'
AND installed = true"
.fetch_one(&mut conn);
assert!(azure_extension.0.is_some());

Ok(())
}

0 comments on commit af11c74

Please sign in to comment.