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 @@

It's easy to change.

top_level_dir=settings.BASE_PATH, ) - return reorder_suite(suite, (TestCase, TransactionTestCase)) + return reorder_suite(suite, (TestCase,))

(Enhanced version in the code online with the slides.)

@@ -223,7 +223,7 @@

Maybe in 1.5?

django-nose is good too, but this could actually go in Django.

-
+

Types of test

    @@ -597,13 +597,32 @@

    in any test file

    return tests
-

Now your examples are tested!

+

Your examples are tested!

    -
  • Don't abuse this.

  • +
  • Please don't abuse this.

  • Keep them documentation first.

+
+

You have a setting.

+ +
    +
  • ALLOW_COMMENTS, for example.
  • +
+
+
+
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):
+  # ...

Questions?