| Conditions | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | # -*- coding: utf-8 -*- |
||
| 28 | def test_update_version_file(self): |
||
| 29 | fake_path_class = MagicMock(spec=Path) |
||
| 30 | fake_path = fake_path_class.return_value |
||
| 31 | |||
| 32 | update_version_file('22.04dev1', fake_path) |
||
| 33 | |||
| 34 | text = fake_path.write_text.call_args[0][0] |
||
| 35 | |||
| 36 | *_, version_line, _last_line = text.split('\n') |
||
| 37 | |||
| 38 | self.assertEqual(version_line, '__version__ = "22.4.dev1"') |
||
| 39 |