We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b109cec commit cfe982fCopy full SHA for cfe982f
ci/code_checks.sh
@@ -148,6 +148,11 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
148
invgrep -R --exclude=*.pyc --exclude=testing.py --exclude=test_util.py assert_raises_regex pandas
149
RET=$(($RET + $?)) ; echo $MSG "DONE"
150
151
+ # Check for the following code in testing: `unittest.mock`, `mock.Mock()` or `mock.patch`
152
+ MSG='Check that unittest.mock is not used (pytest builtin monkeypatch fixture should be used instread)' ; echo $MSG
153
+ invgrep -r -E --include '*.py' '(unittest(\.| import )mock|mock\.Mock\(\)|mock\.patch)' pandas/tests/
154
+ RET=$(($RET + $?)) ; echo $MSG "DONE"
155
+
156
# Check that we use pytest.raises only as a context manager
157
#
158
# For any flake8-compliant code, the only way this regex gets
0 commit comments