Skip to content

Commit

Permalink
Update static version.
Browse files Browse the repository at this point in the history
  • Loading branch information
carljm committed Mar 10, 2012
1 parent 0d156a1 commit 33dceb0
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions static/index.html
Expand Up @@ -190,7 +190,7 @@ <h1>It's easy to change.</h1>
top_level_dir=settings.BASE_PATH, top_level_dir=settings.BASE_PATH,
) )


return reorder_suite(suite, (TestCase, TransactionTestCase))</code></pre> return reorder_suite(suite, (TestCase,))</code></pre>


<p class="notes">(Enhanced version in the code online with the slides.)</p></div> <p class="notes">(Enhanced version in the code online with the slides.)</p></div>
</div><div class="slide" data-transition="none"><div class="content small" ref="whichtests/40_solution/3"> </div><div class="slide" data-transition="none"><div class="content small" ref="whichtests/40_solution/3">
Expand Down Expand Up @@ -223,7 +223,7 @@ <h1>Maybe in 1.5?</h1>




<p class="notes">django-nose is good too, but this could actually go in Django.</p></div> <p class="notes">django-nose is good too, but this could actually go in Django.</p></div>
</div><div class="slide" data-transition="none"><div class="content" ref="levels/10_intro/1"> </div><div class="slide" data-transition="none"><div class="content incremental" ref="levels/10_intro/1">
<h1>Types of test</h1> <h1>Types of test</h1>


<ul> <ul>
Expand Down Expand Up @@ -597,13 +597,32 @@ <h1>in any test file</h1>


return tests</code></pre></div> return tests</code></pre></div>
</div><div class="slide" data-transition="none"><div class="content incremental" ref="doctests/10_intro/6"> </div><div class="slide" data-transition="none"><div class="content incremental" ref="doctests/10_intro/6">
<h1>Now your examples are tested!</h1> <h1>Your examples are tested!</h1>


<ul> <ul>
<li><p>Don't abuse this.</p></li> <li><p>Please don't abuse this.</p></li>
<li><p>Keep them documentation first.</p></li> <li><p>Keep them documentation first.</p></li>
</ul> </ul>
</div> </div>
</div><div class="slide" data-transition="none"><div class="content" ref="settings/10_intro">
<h1>You have a setting.</h1>

<ul>
<li><code>ALLOW_COMMENTS</code>, for example.</li>
</ul>
</div>
</div><div class="slide" data-transition="none"><div class="content antipattern" ref="settings/20_bad">
<pre class="sh_python"><code>def test_comments_allowed(self):
old_allow = settings.ALLOW_COMMENTS
settings.ALLOW_COMMENTS = True
try:
# ...
finally:
settings.ALLOW_COMMENTS = old_allow</code></pre></div>
</div><div class="slide" data-transition="none"><div class="content" ref="settings/30_good">
<pre class="sh_python"><code>@override_settings(ALLOW_COMMENTS=True)
def test_comments_allowed(self):
# ...</code></pre></div>
</div><div class="slide" data-transition="none"><div class="content smaller intro" ref="outro/01_out"> </div><div class="slide" data-transition="none"><div class="content smaller intro" ref="outro/01_out">
<h1>Questions?</h1> <h1>Questions?</h1>


Expand Down

0 comments on commit 33dceb0

Please sign in to comment.