| Conditions | 1 |
| Total Lines | 9 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | from datetime import date |
||
| 13 | def test_fix_init(self): |
||
| 14 | path = TestResources.resource("fake") |
||
| 15 | context = Context(path, dry_run=True) |
||
| 16 | sync = Sync(context) |
||
| 17 | lines = sync.fix_init() |
||
| 18 | assert len(lines) == 3 |
||
| 19 | assert lines[0] == f'__copyright__ = "Copyright {date.today().year}"' |
||
| 20 | assert lines[1] == f'__date__ = "{date.today()}"' |
||
| 21 | assert lines[2] == '__status__ = "Development"' |
||
| 22 | |||
| 26 |