summaryrefslogtreecommitdiff
path: root/schist_core/schist_fakes/src
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2025-08-25 16:35:45 +0000
committerjoeac <me@joeac.net>2025-08-25 16:35:45 +0000
commitfe85652e4d3e8906824baddaafd05d19105579b8 (patch)
tree31b56e31cbf289a34ec1d6707becf3c60933b56f /schist_core/schist_fakes/src
parentd082a30de6a0cbd1fbe2ab5a4316db0891004129 (diff)
task-072
Co-authored-by: Joe Carstairs <jcarstairs@scottlogic.com> Reviewed-on: https://git.joeac.net/joeac/schist/pulls/3 Co-authored-by: Joe Carstairs <me@joeac.net> Co-committed-by: Joe Carstairs <me@joeac.net>
Diffstat (limited to 'schist_core/schist_fakes/src')
-rw-r--r--schist_core/schist_fakes/src/drip.rs8
-rw-r--r--schist_core/schist_fakes/src/pipe.rs3
2 files changed, 9 insertions, 2 deletions
diff --git a/schist_core/schist_fakes/src/drip.rs b/schist_core/schist_fakes/src/drip.rs
index c2aa7a0..f7d0222 100644
--- a/schist_core/schist_fakes/src/drip.rs
+++ b/schist_core/schist_fakes/src/drip.rs
@@ -7,6 +7,12 @@ pub fn make_fake_drip(id: i32) -> Drip {
pub fn make_fake_drip_builder(id: i32) -> DripBuilder {
let mut builder = DripBuilder::default();
- builder.id(id).amount(0).bucket_id(0).date(DateUtc::now());
+ builder
+ .id(id)
+ .amount(0)
+ .bucket_id(0)
+ .date(DateUtc::now())
+ .inserted_at_unix_seconds(0)
+ .pipe_id(0);
builder
}
diff --git a/schist_core/schist_fakes/src/pipe.rs b/schist_core/schist_fakes/src/pipe.rs
index 765ad78..df77396 100644
--- a/schist_core/schist_fakes/src/pipe.rs
+++ b/schist_core/schist_fakes/src/pipe.rs
@@ -11,7 +11,8 @@ pub fn make_fake_pipe_builder(id: i32) -> PipeBuilder {
.id(id)
.amount(0)
.bucket_id(0)
- .period(BudgetPeriodUnit::Day)
+ .period_unit(BudgetPeriodUnit::Day)
+ .period_length(1)
.start_date(DateUtc::now());
builder
}