diff --git a/static/index.html b/static/index.html index 6141835..91f3e5d 100644 --- a/static/index.html +++ b/static/index.html @@ -190,7 +190,7 @@
(Enhanced version in the code online with the slides.)
django-nose is good too, but this could actually go in Django.
Don't abuse this.
Please don't abuse this.
Keep them documentation first.
ALLOW_COMMENTS
def test_comments_allowed(self): + old_allow = settings.ALLOW_COMMENTS + settings.ALLOW_COMMENTS = True + try: + # ... + finally: + settings.ALLOW_COMMENTS = old_allow
@override_settings(ALLOW_COMMENTS=True) +def test_comments_allowed(self): + # ...