Conditions | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 0 |
1 | 1 | import pytest |
|
18 | 1 | def test_count_step_1(today_as_decimaldate_int) -> None: |
|
19 | # GIVEN |
||
20 | 1 | step = 1 |
|
21 | # WHEN |
||
22 | 1 | it = iter(DecimalDate.count(step=step)) |
|
23 | # THEN |
||
24 | 1 | assert next(it).as_int() == today_as_decimaldate_int |
|
25 | 1 | assert ( |
|
26 | next(it).as_int() == DecimalDate(today_as_decimaldate_int).next(step).as_int() |
||
27 | ) |
||
64 |