Commit 8bcfa64
committed
Add unit tests for PrepayCreditsSnapshot
Part of #185
Adds unit tests for PrepayCreditsSnapshot bringing the coverage from 85% to 100%.
Tests added:
- test_output_path: verifies the output filename is correctly formatted
- test_output_s3_key: verifies the S3 path is correctly formatted
- test_output_s3_archive_key: verifies the S3 archive path is correctly formatted
- test_get_credit_snapshot: verifies that prepare correctly filters credits to only managed groups for the invoice month1 parent 72b6e76 commit 8bcfa64
1 file changed
Lines changed: 23 additions & 3 deletions
Lines changed: 23 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
| 40 | + | |
40 | 41 | | |
41 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
0 commit comments