diff --git a/doc/en/example/simple.rst b/doc/en/example/simple.rst index 442f2f866..da831244b 100644 --- a/doc/en/example/simple.rst +++ b/doc/en/example/simple.rst @@ -269,6 +269,7 @@ running from a test you can do something like this: sys._called_from_test = True def pytest_unconfigure(config): + import sys del sys._called_from_test and then check for the ``sys._called_from_test`` flag: diff --git a/doc/en/talks.rst b/doc/en/talks.rst index 85faf6455..bf593db4b 100644 --- a/doc/en/talks.rst +++ b/doc/en/talks.rst @@ -2,14 +2,21 @@ Talks and Tutorials ========================== -.. sidebar:: Next Open Trainings +.. + .. sidebar:: Next Open Trainings - `Professional Testing with Python - `_, - 26-28 April 2017, Leipzig, Germany. + `Professional Testing with Python + `_, + 26-28 April 2017, Leipzig, Germany. .. _`funcargs`: funcargs.html +Books +--------------------------------------------- + +- `Python Testing with pytest, by Brian Okken (2017) + `_. + Talks and blog postings ---------------------------------------------