mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 08:37:06 +08:00
[Fix] Fix version function (#3076)
* [Fix] Fix version function * Fix commit * Fix commit * fix code sync * Update coverage_run.sh --------- Co-authored-by: Jiang-Jia-Jun <jiangjiajun@baidu.com>
This commit is contained in:
13
test/utils/test_version.py
Normal file
13
test/utils/test_version.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import unittest
|
||||
|
||||
import fastdeploy
|
||||
|
||||
|
||||
class TestVersion(unittest.TestCase):
|
||||
def test_get_version(self):
|
||||
ver = fastdeploy.version()
|
||||
assert ver.count("COMMIT") > 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
Reference in New Issue
Block a user