代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/python-pytest-mock 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From b4d1b1166d4d9e5a9df1b1fdea73021c936891b6 Mon Sep 17 00:00:00 2001
From: baizg1107 <[email protected]>
Date: Tue, 12 Jan 2021 10:25:28 +0800
Subject: [PATCH] fix tests expectations with pytest4
reference: https://github.com/nicoddemus/pytest-mock/commit/970e4b1f8cfd6bd750b4c8240efad378cbf049c2
---
test_pytest_mock.py | 2 +-
tox.ini | 8 +++++++-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/test_pytest_mock.py b/test_pytest_mock.py
index e50b5b8..45dbe3f 100644
--- a/test_pytest_mock.py
+++ b/test_pytest_mock.py
@@ -585,7 +585,7 @@ def test_detailed_introspection(testdir):
"*Use -v to get the full diff*",
"*Kwargs:*",
"*assert {} == {'bar': 4}*",
- "*Right contains more items:*",
+ "*Right contains* more item*",
"*{'bar': 4}*",
"*Use -v to get the full diff*",
]
diff --git a/tox.ini b/tox.ini
index 7a270b1..bc9eaa0 100644
--- a/tox.ini
+++ b/tox.ini
@@ -12,7 +12,7 @@ commands =
[testenv:norewrite]
commands =
- pytest test_pytest_mock.py --assert=plain -ra
+ pytest test_pytest_mock.py --assert=plain
[testenv:linting]
skip_install=True
@@ -23,3 +23,9 @@ deps =
commands =
py.test --flakes pytest_mock.py test_pytest_mock.py -m flakes
rst-lint CHANGELOG.rst README.rst
+
+[tool:pytest]
+addopts = -r a
+
+[flake8]
+max-line-length = 88
--
2.23.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。