Worker tests: set the chart kind (charts_primary_is_own)
CI / test (push) Successful in 44s
CI / build (push) Successful in 4m13s
CI / deploy (push) Skipped

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
feco
2026-11-17 12:22:55 +00:00
co-authored by Claude Opus 5.5
parent ae9b1b31a9
commit 0ba80abb47
+4 -4
View File
@@ -269,8 +269,8 @@ mod analyses {
.await
.unwrap();
sqlx::query(
"INSERT INTO charts (id, owner_id, label, is_primary, birth_data, result, chart_hash) \
VALUES ($1, $2, 'Saját', true, '{}', $3, 'hash1')",
"INSERT INTO charts (id, owner_id, label, is_primary, kind, birth_data, result, chart_hash) \
VALUES ($1, $2, 'Saját', true, 'own', '{}', $3, 'hash1')",
)
.bind(chart)
.bind(user)
@@ -424,8 +424,8 @@ mod analyses {
let response = fixture("synastry-response.json");
let (chart2, synastry) = (Uuid::now_v7(), Uuid::now_v7());
sqlx::query(
"INSERT INTO charts (id, owner_id, label, is_primary, birth_data, result, chart_hash) \
VALUES ($1, $2, 'Partner', false, '{}', $3, 'hash2')",
"INSERT INTO charts (id, owner_id, label, is_primary, kind, birth_data, result, chart_hash) \
VALUES ($1, $2, 'Partner', false, 'person', '{}', $3, 'hash2')",
)
.bind(chart2)
.bind(s.user)