测试找不到版本行的情况
(self, mock_file)
| 38 | |
| 39 | @patch("builtins.open", new_callable=mock_open, read_data="some other content") |
| 40 | def test_no_version_line(self, mock_file): |
| 41 | """测试找不到版本行的情况""" |
| 42 | self.assertEqual(current_package_version(), "Unknown") |
| 43 | |
| 44 | @patch( |
| 45 | "builtins.open", |
nothing calls this directly
no test coverage detected