Conditions | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 0 |
1 | 1 | import pytest |
|
54 | 1 | def test_count_step_neg17(today_as_decimaldate_int) -> None: |
|
55 | # GIVEN |
||
56 | 1 | step = -17 |
|
57 | # WHEN |
||
58 | 1 | it = iter(DecimalDate.count(step=step)) |
|
59 | # THEN |
||
60 | 1 | assert next(it).as_int() == today_as_decimaldate_int |
|
61 | 1 | assert ( |
|
62 | next(it).as_int() == DecimalDate(today_as_decimaldate_int).next(step).as_int() |
||
63 | ) |
||
64 |