diff options
Diffstat (limited to 'schist_core/schist_fakes/src')
| -rw-r--r-- | schist_core/schist_fakes/src/drip.rs | 8 | ||||
| -rw-r--r-- | schist_core/schist_fakes/src/pipe.rs | 3 |
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 } |
