summaryrefslogtreecommitdiff
path: root/schist_core/schist_fakes/src
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-01-17 08:34:18 +0000
committerJoe Carstairs <me@joeac.net>2026-01-17 16:43:36 +0000
commit0971a7a4e847a5ae935c164d8d63c18d803ddc70 (patch)
treee177150729e6547c271e4d27dd31a5f2ca27d484 /schist_core/schist_fakes/src
parentfa1d9941e2d3969a1035d36c97f3363628a409c0 (diff)
BucketTransaction has date field
Diffstat (limited to 'schist_core/schist_fakes/src')
-rw-r--r--schist_core/schist_fakes/src/bucket_transaction.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/schist_core/schist_fakes/src/bucket_transaction.rs b/schist_core/schist_fakes/src/bucket_transaction.rs
index 3dd0a6f..aecc057 100644
--- a/schist_core/schist_fakes/src/bucket_transaction.rs
+++ b/schist_core/schist_fakes/src/bucket_transaction.rs
@@ -1,4 +1,7 @@
-use schist_models::{BucketTransaction, BucketTransactionBuilder};
+use schist_models::{
+ bucket_transaction::{BucketTransaction, BucketTransactionBuilder},
+ date_utc::DateUtc,
+};
pub fn make_fake_bucket_transaction(id: i32) -> BucketTransaction {
make_fake_bucket_transaction_builder(id).build().unwrap()
@@ -10,6 +13,7 @@ pub fn make_fake_bucket_transaction_builder(id: i32) -> BucketTransactionBuilder
.id(id)
.description(String::from("Fake bucket transaction"))
.amount(0)
+ .date(DateUtc::from_ymd(1970, 1, 1).unwrap())
.bucket_id(1);
builder
}