5 more tests to go

This commit is contained in:
filipriec
2025-06-21 21:01:49 +02:00
parent 298f56a53c
commit 06d98aab5c
5 changed files with 22 additions and 16 deletions

View File

@@ -157,8 +157,9 @@ async fn test_name_sanitization(#[future] pool: PgPool) {
#[tokio::test]
async fn test_create_minimal_table(#[future] pool: PgPool) {
let pool = pool.await;
let profile_name = "test_minimal";
let req = PostTableDefinitionRequest {
profile_name: "default".into(),
profile_name: profile_name.into(),
table_name: "minimal".into(),
..Default::default()
};
@@ -168,7 +169,7 @@ async fn test_create_minimal_table(#[future] pool: PgPool) {
assert!(resp.sql.contains("created_at TIMESTAMPTZ"));
assert_table_structure_is_correct(
&pool,
"default", // FIXED: Added schema parameter
profile_name,
"minimal",
&[
("id", "bigint"),