1 Star 0 Fork 15

张尧/pkgship

forked from src-openEuler/pkgship 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0008-update-patch-import.patch 3.04 KB
一键复制 编辑 原始数据 按行查看 历史
LiHeavy 提交于 2021-03-20 00:18 . update patchs
--- a/test/test_module/test_build/test_get_build_depend.py
+++ b/test/test_module/test_build/test_get_build_depend.py
@@ -16,7 +16,7 @@ test get binary package info
import unittest
import os
from unittest import mock
-from mock import patch
+from unittest.mock import patch
from redis import Redis
from packageship.application.core.depend.build_depend import BuildDepend
--- a/test/test_module/test_install/test_get_install_depend.py
+++ b/test/test_module/test_install/test_get_install_depend.py
@@ -16,8 +16,7 @@ test get install depend info
import unittest
import os
from unittest import mock
-
-from mock import patch
+from unittest.mock import patch
from redis import Redis
from packageship.application.core.depend.install_depend import InstallDepend
--- a/test/test_module/test_packages/test_all_bin_package/test_get_all_bin_package.py
+++ b/test/test_module/test_packages/test_all_bin_package/test_get_all_bin_package.py
@@ -16,7 +16,7 @@ test get all bin package
import os
import unittest
from unittest import mock
-from mock import patch
+from unittest.mock import patch
from packageship.application.common.exc import PackageInfoGettingError, DatabaseConfigException, \
ElasticSearchQueryException
--- a/test/test_module/test_packages/test_all_src_package/test_get_all_src_package.py
+++ b/test/test_module/test_packages/test_all_src_package/test_get_all_src_package.py
@@ -16,7 +16,7 @@ test get all src package
import unittest
import os
from unittest import mock
-from mock import patch
+from unittest.mock import patch
from packageship.application.common.exc import PackageInfoGettingError, DatabaseConfigException, \
ElasticSearchQueryException
--- a/test/test_module/test_packages/test_single_package_info/test_get_bin_package_info.py
+++ b/test/test_module/test_packages/test_single_package_info/test_get_bin_package_info.py
@@ -16,7 +16,7 @@ test get binary package info
import unittest
import os
from unittest import mock
-from mock import patch
+from unittest.mock import patch
from packageship.application.common.exc import DatabaseConfigException, ElasticSearchQueryException
from packageship.application.core.pkginfo.pkg import BinaryPackage
--- a/test/test_module/test_packages/test_single_package_info/test_get_src_package_info.py
+++ b/test/test_module/test_packages/test_single_package_info/test_get_src_package_info.py
@@ -16,7 +16,7 @@ test get src package info
import unittest
import os
from unittest import mock
-from mock import patch
+from unittest.mock import patch
from packageship.application.common.exc import DatabaseConfigException, ElasticSearchQueryException
from packageship.application.core. pkginfo.pkg import SourcePackage
--- a/test/test_module/test_selfbuild/test_get_self_depend_info.py
+++ b/test/test_module/test_selfbuild/test_get_self_depend_info.py
@@ -16,7 +16,7 @@ test get self_build depend info
import unittest
import os
from unittest import mock
-from mock import patch
+from unittest.mock import patch
from redis import Redis
from packageship.application.core.depend.self_depend import SelfDepend
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/polite2anyone/pkgship.git
[email protected]:polite2anyone/pkgship.git
polite2anyone
pkgship
pkgship
master

搜索帮助