MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / test_no_version_line

Method test_no_version_line

tests/utils/test_version.py:40–42  ·  view source on GitHub ↗

测试找不到版本行的情况

(self, mock_file)

Source from the content-addressed store, hash-verified

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",

Callers

nothing calls this directly

Calls 1

current_package_versionFunction · 0.90

Tested by

no test coverage detected