]> git.ipfire.org Git - thirdparty/python-fints.git/commitdiff
`mock` has been deprecated in 2014
authorHenryk Plötz <henryk@ploetzli.ch>
Mon, 9 Sep 2019 12:22:42 +0000 (14:22 +0200)
committerHenryk Plötz <henryk@ploetzli.ch>
Mon, 9 Sep 2019 12:22:42 +0000 (14:22 +0200)
tests/test_message_parser.py

index 71ac547e398cb69219b92c78e757a8317122f288..95835b85db4f3a1f4040789052f7770350426633 100644 (file)
@@ -125,8 +125,8 @@ def test_invalid():
         m = FinTS3Parser().parse_message(message6)
 
 
-def test_robust_mode(mock):
-    mock.patch('fints.parser.robust_mode', True)
+def test_robust_mode(mocker):
+    mocker.patch('fints.parser.robust_mode', True)
 
     message1 = rb"""HNHBS:5:1'"""
     with pytest.warns(FinTSParserWarning, match='^Ignoring parser error.*: Required field'):