Worker tests: set the chart kind (charts_primary_is_own) #5
@@ -269,8 +269,8 @@ mod analyses {
|
|||||||
.await
|
.await
|
||||||
.unwrap();
|
.unwrap();
|
||||||
sqlx::query(
|
sqlx::query(
|
||||||
"INSERT INTO charts (id, owner_id, label, is_primary, birth_data, result, chart_hash) \
|
"INSERT INTO charts (id, owner_id, label, is_primary, kind, birth_data, result, chart_hash) \
|
||||||
VALUES ($1, $2, 'Saját', true, '{}', $3, 'hash1')",
|
VALUES ($1, $2, 'Saját', true, 'own', '{}', $3, 'hash1')",
|
||||||
)
|
)
|
||||||
.bind(chart)
|
.bind(chart)
|
||||||
.bind(user)
|
.bind(user)
|
||||||
@@ -424,8 +424,8 @@ mod analyses {
|
|||||||
let response = fixture("synastry-response.json");
|
let response = fixture("synastry-response.json");
|
||||||
let (chart2, synastry) = (Uuid::now_v7(), Uuid::now_v7());
|
let (chart2, synastry) = (Uuid::now_v7(), Uuid::now_v7());
|
||||||
sqlx::query(
|
sqlx::query(
|
||||||
"INSERT INTO charts (id, owner_id, label, is_primary, birth_data, result, chart_hash) \
|
"INSERT INTO charts (id, owner_id, label, is_primary, kind, birth_data, result, chart_hash) \
|
||||||
VALUES ($1, $2, 'Partner', false, '{}', $3, 'hash2')",
|
VALUES ($1, $2, 'Partner', false, 'person', '{}', $3, 'hash2')",
|
||||||
)
|
)
|
||||||
.bind(chart2)
|
.bind(chart2)
|
||||||
.bind(s.user)
|
.bind(s.user)
|
||||||
|
|||||||
Reference in New Issue
Block a user