1 Star 0 Fork 19

陈棋德/python-pytest-mock

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
pytest-mock-issue272-asyncio.patch 2.07 KB
一键复制 编辑 原始数据 按行查看 历史
li-miaomiao_zhr 提交于 2023-06-28 17:40 . update package to version 3.11.1
From 18f6ba2f7733e0145c87038bed8e1f95b1125e56 Mon Sep 17 00:00:00 2001
From: li-miaomiao_zhr <[email protected]>
Date: Wed, 28 Jun 2023 15:08:15 +0800
Subject: [PATCH] pytest mock issue272 asyncio
---
tests/test_pytest_mock.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/tests/test_pytest_mock.py b/tests/test_pytest_mock.py
index 3d53241..5e3ac7b 100644
--- a/tests/test_pytest_mock.py
+++ b/tests/test_pytest_mock.py
@@ -948,7 +948,7 @@ def test_plain_stopall(testdir: Any) -> None:
"""
)
result = testdir.runpytest_subprocess()
- result.stdout.fnmatch_lines("* 1 passed in *")
+ result.stdout.fnmatch_lines("* 1 passed*")
assert "RuntimeError" not in result.stderr.str()
@@ -1093,7 +1093,7 @@ def test_used_with_class_scope(testdir: Any) -> None:
)
result = testdir.runpytest_subprocess()
assert "AssertionError" not in result.stderr.str()
- result.stdout.fnmatch_lines("* 1 passed in *")
+ result.stdout.fnmatch_lines("* 1 passed*")
def test_used_with_module_scope(testdir: Any) -> None:
@@ -1121,7 +1121,7 @@ def test_used_with_module_scope(testdir: Any) -> None:
)
result = testdir.runpytest_subprocess()
assert "AssertionError" not in result.stderr.str()
- result.stdout.fnmatch_lines("* 1 passed in *")
+ result.stdout.fnmatch_lines("* 1 passed*")
def test_used_with_package_scope(testdir: Any) -> None:
@@ -1149,7 +1149,7 @@ def test_used_with_package_scope(testdir: Any) -> None:
)
result = testdir.runpytest_subprocess()
assert "AssertionError" not in result.stderr.str()
- result.stdout.fnmatch_lines("* 1 passed in *")
+ result.stdout.fnmatch_lines("* 1 passed*")
def test_used_with_session_scope(testdir: Any) -> None:
@@ -1177,7 +1177,7 @@ def test_used_with_session_scope(testdir: Any) -> None:
)
result = testdir.runpytest_subprocess()
assert "AssertionError" not in result.stderr.str()
- result.stdout.fnmatch_lines("* 1 passed in *")
+ result.stdout.fnmatch_lines("* 1 passed*")
def test_stop_patch(mocker):
--
2.39.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dillon_chen/python-pytest-mock.git
[email protected]:dillon_chen/python-pytest-mock.git
dillon_chen
python-pytest-mock
python-pytest-mock
master

搜索帮助