From df431e2c9fb9269d061567a545724f7983acdc7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=BCttler?= Date: Mon, 14 Dec 2020 22:24:58 +0100 Subject: [PATCH] Advertise the cool FAIL_INVALID_TEMPLATE_VARS flag --- docs/usage.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/usage.rst b/docs/usage.rst index b15fc15cc..edfead5e9 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -29,6 +29,11 @@ Additional command line options ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Fail tests that render templates which make use of invalid template variables. +You can switch it on in `pytest.ini`:: + + [pytest] + FAIL_INVALID_TEMPLATE_VARS = True + Additional pytest.ini settings ------------------------------