[Pytest-commit] commit/pytest: t-8ch: [doc] fix requests monkeypatch example

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Tue Aug 19 20:57:03 CEST 2014

1 new commit in pytest:

Changeset:   a7e8085f8437
User:        t-8ch
Date:        2014-08-18 21:44:34
Summary:     [doc] fix requests monkeypatch example
Affected #:  1 file

diff -r f0d4a70ab98a3f1e82f25531ed7e1c9979c12b13 -r a7e8085f843717871030cabb0906084e18f3bd30 doc/en/monkeypatch.txt
--- a/doc/en/monkeypatch.txt
+++ b/doc/en/monkeypatch.txt
@@ -48,7 +48,7 @@
     import pytest
     def no_requests(monkeypatch):
-        monkeypatch.delattr("requests.session.Session.request")
+        monkeypatch.delattr("requests.sessions.Session.request")
 This autouse fixture will be executed for each test function and it
 will delete the method ``request.session.Session.request``

Repository URL: https://bitbucket.org/hpk42/pytest/


This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.

More information about the pytest-commit mailing list