[py-svn] r62744 - py/extradoc/talk/pycon-us-2009/pytest-introduction

briandorsey at codespeak.net briandorsey at codespeak.net
Mon Mar 9 08:49:36 CET 2009


Author: briandorsey
Date: Mon Mar  9 08:49:36 2009
New Revision: 62744

Added:
   py/extradoc/talk/pycon-us-2009/pytest-introduction/pytest-introduction.html
      - copied unchanged from r62743, py/extradoc/talk/pycon-us-2009/pytest-introduction/pytest-begin.html
   py/extradoc/talk/pycon-us-2009/pytest-introduction/pytest-introduction.txt
      - copied unchanged from r62743, py/extradoc/talk/pycon-us-2009/pytest-introduction/pytest-begin.txt
Removed:
   py/extradoc/talk/pycon-us-2009/pytest-introduction/pytest-begin.html
   py/extradoc/talk/pycon-us-2009/pytest-introduction/pytest-begin.txt
Modified:
   py/extradoc/talk/pycon-us-2009/pytest-introduction/build.sh
Log:
rename begin -> introduction


Modified: py/extradoc/talk/pycon-us-2009/pytest-introduction/build.sh
==============================================================================
--- py/extradoc/talk/pycon-us-2009/pytest-introduction/build.sh	(original)
+++ py/extradoc/talk/pycon-us-2009/pytest-introduction/build.sh	Mon Mar  9 08:49:36 2009
@@ -1 +1 @@
-rst2s5.py pytest-begin.txt pytest-begin.html
+rst2s5.py pytest-introduction.txt pytest-introduction.html

Deleted: /py/extradoc/talk/pycon-us-2009/pytest-introduction/pytest-begin.html
==============================================================================
--- /py/extradoc/talk/pycon-us-2009/pytest-introduction/pytest-begin.html	Mon Mar  9 08:49:36 2009
+++ (empty file)
@@ -1,450 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<meta name="generator" content="Docutils 0.5: http://docutils.sourceforge.net/" />
-<meta name="version" content="S5 1.1" />
-<title></title>
-<style type="text/css">
-
-/*
-:Author: David Goodger (goodger at python.org)
-:Id: $Id: html4css1.css 5196 2007-06-03 20:25:28Z wiemann $
-:Copyright: This stylesheet has been placed in the public domain.
-
-Default cascading style sheet for the HTML output of Docutils.
-
-See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
-customize this style sheet.
-*/
-
-/* used to remove borders from tables and images */
-.borderless, table.borderless td, table.borderless th {
-  border: 0 }
-
-table.borderless td, table.borderless th {
-  /* Override padding for "table.docutils td" with "! important".
-     The right padding separates the table cells. */
-  padding: 0 0.5em 0 0 ! important }
-
-.first {
-  /* Override more specific margin styles with "! important". */
-  margin-top: 0 ! important }
-
-.last, .with-subtitle {
-  margin-bottom: 0 ! important }
-
-.hidden {
-  display: none }
-
-a.toc-backref {
-  text-decoration: none ;
-  color: black }
-
-blockquote.epigraph {
-  margin: 2em 5em ; }
-
-dl.docutils dd {
-  margin-bottom: 0.5em }
-
-/* Uncomment (and remove this text!) to get bold-faced definition list terms
-dl.docutils dt {
-  font-weight: bold }
-*/
-
-div.abstract {
-  margin: 2em 5em }
-
-div.abstract p.topic-title {
-  font-weight: bold ;
-  text-align: center }
-
-div.admonition, div.attention, div.caution, div.danger, div.error,
-div.hint, div.important, div.note, div.tip, div.warning {
-  margin: 2em ;
-  border: medium outset ;
-  padding: 1em }
-
-div.admonition p.admonition-title, div.hint p.admonition-title,
-div.important p.admonition-title, div.note p.admonition-title,
-div.tip p.admonition-title {
-  font-weight: bold ;
-  font-family: sans-serif }
-
-div.attention p.admonition-title, div.caution p.admonition-title,
-div.danger p.admonition-title, div.error p.admonition-title,
-div.warning p.admonition-title {
-  color: red ;
-  font-weight: bold ;
-  font-family: sans-serif }
-
-/* Uncomment (and remove this text!) to get reduced vertical space in
-   compound paragraphs.
-div.compound .compound-first, div.compound .compound-middle {
-  margin-bottom: 0.5em }
-
-div.compound .compound-last, div.compound .compound-middle {
-  margin-top: 0.5em }
-*/
-
-div.dedication {
-  margin: 2em 5em ;
-  text-align: center ;
-  font-style: italic }
-
-div.dedication p.topic-title {
-  font-weight: bold ;
-  font-style: normal }
-
-div.figure {
-  margin-left: 2em ;
-  margin-right: 2em }
-
-div.footer, div.header {
-  clear: both;
-  font-size: smaller }
-
-div.line-block {
-  display: block ;
-  margin-top: 1em ;
-  margin-bottom: 1em }
-
-div.line-block div.line-block {
-  margin-top: 0 ;
-  margin-bottom: 0 ;
-  margin-left: 1.5em }
-
-div.sidebar {
-  margin: 0 0 0.5em 1em ;
-  border: medium outset ;
-  padding: 1em ;
-  background-color: #ffffee ;
-  width: 40% ;
-  float: right ;
-  clear: right }
-
-div.sidebar p.rubric {
-  font-family: sans-serif ;
-  font-size: medium }
-
-div.system-messages {
-  margin: 5em }
-
-div.system-messages h1 {
-  color: red }
-
-div.system-message {
-  border: medium outset ;
-  padding: 1em }
-
-div.system-message p.system-message-title {
-  color: red ;
-  font-weight: bold }
-
-div.topic {
-  margin: 2em }
-
-h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
-h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
-  margin-top: 0.4em }
-
-h1.title {
-  text-align: center }
-
-h2.subtitle {
-  text-align: center }
-
-hr.docutils {
-  width: 75% }
-
-img.align-left {
-  clear: left }
-
-img.align-right {
-  clear: right }
-
-ol.simple, ul.simple {
-  margin-bottom: 1em }
-
-ol.arabic {
-  list-style: decimal }
-
-ol.loweralpha {
-  list-style: lower-alpha }
-
-ol.upperalpha {
-  list-style: upper-alpha }
-
-ol.lowerroman {
-  list-style: lower-roman }
-
-ol.upperroman {
-  list-style: upper-roman }
-
-p.attribution {
-  text-align: right ;
-  margin-left: 50% }
-
-p.caption {
-  font-style: italic }
-
-p.credits {
-  font-style: italic ;
-  font-size: smaller }
-
-p.label {
-  white-space: nowrap }
-
-p.rubric {
-  font-weight: bold ;
-  font-size: larger ;
-  color: maroon ;
-  text-align: center }
-
-p.sidebar-title {
-  font-family: sans-serif ;
-  font-weight: bold ;
-  font-size: larger }
-
-p.sidebar-subtitle {
-  font-family: sans-serif ;
-  font-weight: bold }
-
-p.topic-title {
-  font-weight: bold }
-
-pre.address {
-  margin-bottom: 0 ;
-  margin-top: 0 ;
-  font-family: serif ;
-  font-size: 100% }
-
-pre.literal-block, pre.doctest-block {
-  margin-left: 2em ;
-  margin-right: 2em }
-
-span.classifier {
-  font-family: sans-serif ;
-  font-style: oblique }
-
-span.classifier-delimiter {
-  font-family: sans-serif ;
-  font-weight: bold }
-
-span.interpreted {
-  font-family: sans-serif }
-
-span.option {
-  white-space: nowrap }
-
-span.pre {
-  white-space: pre }
-
-span.problematic {
-  color: red }
-
-span.section-subtitle {
-  /* font-size relative to parent (h1..h6 element) */
-  font-size: 80% }
-
-table.citation {
-  border-left: solid 1px gray;
-  margin-left: 1px }
-
-table.docinfo {
-  margin: 2em 4em }
-
-table.docutils {
-  margin-top: 0.5em ;
-  margin-bottom: 0.5em }
-
-table.footnote {
-  border-left: solid 1px black;
-  margin-left: 1px }
-
-table.docutils td, table.docutils th,
-table.docinfo td, table.docinfo th {
-  padding-left: 0.5em ;
-  padding-right: 0.5em ;
-  vertical-align: top }
-
-table.docutils th.field-name, table.docinfo th.docinfo-name {
-  font-weight: bold ;
-  text-align: left ;
-  white-space: nowrap ;
-  padding-left: 0 }
-
-h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
-h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
-  font-size: 100% }
-
-ul.auto-toc {
-  list-style-type: none }
-
-</style>
-<!-- configuration parameters -->
-<meta name="defaultView" content="slideshow" />
-<meta name="controlVis" content="hidden" />
-<!-- style sheet links -->
-<script src="ui/default/slides.js" type="text/javascript"></script>
-<link rel="stylesheet" href="ui/default/slides.css"
-      type="text/css" media="projection" id="slideProj" />
-<link rel="stylesheet" href="ui/default/outline.css"
-      type="text/css" media="screen" id="outlineStyle" />
-<link rel="stylesheet" href="ui/default/print.css"
-      type="text/css" media="print" id="slidePrint" />
-<link rel="stylesheet" href="ui/default/opera.css"
-      type="text/css" media="projection" id="operaFix" />
-
-<style type="text/css">
-#currentSlide {display: none;}
-</style>
-</head>
-<body>
-<div class="layout">
-<div id="controls"></div>
-<div id="currentSlide"></div>
-<div id="header">
-
-</div>
-<div id="footer">
-
-</div>
-</div>
-<div class="presentation">
-<div class="slide" id="slide0">
-
-
-
-</div>
-<div class="slide" id="py-test-introduction">
-<h1>py.test - introduction</h1>
-<p>Brian Dorsey <<a class="reference external" href="mailto:brian@dorseys.org">brian@dorseys.org</a>></p>
-<p>Holger Krekel <<a class="reference external" href="mailto:holger@merlinux.eu">holger@merlinux.eu</a>></p>
-<p><a class="reference external" href="http://pytest.org">http://pytest.org</a></p>
-<p>TODO: Add URL to help people to prepare for the tutorial (install/config/etc)</p>
-</div>
-<div class="slide" id="presenters">
-<h1>presenters</h1>
-<p>Brian Dorsey <<a class="reference external" href="mailto:brian@dorseys.org">brian@dorseys.org</a>></p>
-<p>Holger Krekel <<a class="reference external" href="mailto:holger@merlinux.eu">holger@merlinux.eu</a>></p>
-</div>
-<div class="slide" id="the-plan">
-<h1>the plan</h1>
-<ul class="simple">
-<li>motivation</li>
-<li>what you get with py.test</li>
-<li>installation (w/exercise)</li>
-<li>basic usage (w/exercise)</li>
-<li>break</li>
-<li>options (w/exercise)</li>
-<li>branching out (w/exercise)</li>
-<li>using doctests (w/exercise)</li>
-<li>wrap up & questions</li>
-</ul>
-</div>
-<div class="slide" id="motivation">
-<h1>Motivation</h1>
-<p>why automated testing? (10 minutes)</p>
-<ul class="simple">
-<li>what is unit testing and how does it compare to other types of testing</li>
-<li>why do automated testing? benefits, etc</li>
-<li>existing python testing tools</li>
-</ul>
-</div>
-<div class="slide" id="what-you-get">
-<h1>What you get</h1>
-<p>What you get with py.test (10 minutes)</p>
-<ul class="simple">
-<li>overview of all the basic benefits</li>
-</ul>
-<div class="system-message">
-<p class="system-message-title">System Message: WARNING/2 (<tt class="docutils">pytest-begin.txt</tt>, line 51)</p>
-Bullet list ends without a blank line; unexpected unindent.</div>
-<blockquote>
-<ul class="simple">
-<li>automatic test discovery</li>
-<li>simplicity, 'print' debugging (output redirection), function or class, assert introspection, etc</li>
-</ul>
-</blockquote>
-<div class="system-message">
-<p class="system-message-title">System Message: WARNING/2 (<tt class="docutils">pytest-begin.txt</tt>, line 53)</p>
-Block quote ends without a blank line; unexpected unindent.</div>
-<ul class="simple">
-<li>extra benefits, there if you need them, ignore if not - multiple python version, distributed testing, doctests, etc, etc</li>
-<li>similarities and differences between nose and py.test</li>
-</ul>
-</div>
-<div class="slide" id="installation">
-<h1>Installation</h1>
-<p><em>Installation, basic test functions. (30 minutes)</em></p>
-<ul class="simple">
-<li>installation</li>
-<li>test functions</li>
-<li>20 minute work time</li>
-<li>Basic setup and working through inevitable setup problems.  Some people will finish very quickly - ask them to help others get setup.</li>
-</ul>
-</div>
-<div class="slide" id="basic-usage">
-<h1>Basic Usage</h1>
-<p>Basic usage of py.test (40 minutes)</p>
-<ul class="simple">
-<li>reinterpretation of asserts</li>
-<li>working with failures - debug with print</li>
-<li>exceptions</li>
-<li>10 minute work time - exercises</li>
-<li>test classes</li>
-<li>setup and teardown test state (special methods / funcargs)</li>
-<li>skipping tests</li>
-<li>10 minute work time - exercises</li>
-</ul>
-</div>
-<div class="slide" id="break">
-<h1>Break</h1>
-</div>
-<div class="slide" id="options">
-<h1>Options</h1>
-<p>Options (25 minutes)</p>
-<ul class="simple">
-<li>--exitfirst</li>
-<li>--nocapture</li>
-<li>--showlocals</li>
-<li>--looponfailing - run large test set until all tests pass</li>
-<li>-k - to run tests matching name or keyword</li>
-<li>--exec - to use different Python interpreters</li>
-<li>--tb/fulltrace - different options to control traceback generation</li>
-<li>10 minute work time - exercises</li>
-</ul>
-</div>
-<div class="slide" id="branching-out">
-<h1>Branching out</h1>
-<p>Branching out (20 minutes)</p>
-<ul class="simple">
-<li>generative tests</li>
-<li>skipping tests</li>
-<li>--pdb</li>
-<li>10 minute work time - exercises</li>
-</ul>
-</div>
-<div class="slide" id="using-doctests">
-<h1>Using doctests</h1>
-<p>Using doctests (25 minutes)</p>
-<ul class="simple">
-<li>what are doctests</li>
-<li>two usage scenarios - docstrings & stand alone files</li>
-<li>how they work demo and examples.</li>
-<li>10 minute work time - exercises</li>
-</ul>
-</div>
-<div class="slide" id="wrap-up">
-<h1>Wrap up</h1>
-<p>Wrapping up and questions (20 minutes)</p>
-<ul class="simple">
-<li>where to go from here</li>
-<li>quesitons and student topics</li>
-</ul>
-</div>
-</div>
-</body>
-</html>

Deleted: /py/extradoc/talk/pycon-us-2009/pytest-introduction/pytest-begin.txt
==============================================================================
--- /py/extradoc/talk/pycon-us-2009/pytest-introduction/pytest-begin.txt	Mon Mar  9 08:49:36 2009
+++ (empty file)
@@ -1,124 +0,0 @@
-py.test - introduction
-======================
-
-Brian Dorsey <brian at dorseys.org>
-
-Holger Krekel <holger at merlinux.eu>
-
-http://pytest.org
-
-TODO: Add URL to help people to prepare for the tutorial (install/config/etc) 
-
-
-
-presenters 
-==========
-
-Brian Dorsey <brian at dorseys.org> 
-
-Holger Krekel <holger at merlinux.eu>
-
-
-the plan
-========
-
-- motivation
-- what you get with py.test
-- installation (w/exercise)
-- basic usage (w/exercise)
-- break
-- options (w/exercise)
-- branching out (w/exercise)
-- using doctests (w/exercise)
-- wrap up & questions
-
-
-Motivation
-==========
-
-why automated testing? (10 minutes) 
-
-- what is unit testing and how does it compare to other types of testing
-- why do automated testing? benefits, etc
-- existing python testing tools
-
-What you get
-============
-
-What you get with py.test (10 minutes)
-
-- overview of all the basic benefits 
- - automatic test discovery
- - simplicity, 'print' debugging (output redirection), function or class, assert introspection, etc
-- extra benefits, there if you need them, ignore if not - multiple python version, distributed testing, doctests, etc, etc
-- similarities and differences between nose and py.test 
-
-Installation
-============
-
-*Installation, basic test functions. (30 minutes)*
-
-- installation 
-- test functions 
-- 20 minute work time
-- Basic setup and working through inevitable setup problems.  Some people will finish very quickly - ask them to help others get setup. 
-
-Basic Usage
-===========
-
-Basic usage of py.test (40 minutes)
-
-- reinterpretation of asserts 
-- working with failures - debug with print
-- exceptions
-- 10 minute work time - exercises
-- test classes 
-- setup and teardown test state (special methods / funcargs)
-- skipping tests
-- 10 minute work time - exercises
-
-Break
-=====
-
-Options
-=======
-
-Options (25 minutes)
-
-- --exitfirst
-- --nocapture
-- --showlocals
-- --looponfailing - run large test set until all tests pass 
-- -k - to run tests matching name or keyword 
-- --exec - to use different Python interpreters 
-- --tb/fulltrace - different options to control traceback generation
-- 10 minute work time - exercises
- 
-Branching out
-=============
-
-Branching out (20 minutes)
-
-- generative tests
-- skipping tests
-- --pdb 
-- 10 minute work time - exercises
-
-Using doctests
-==============
-
-Using doctests (25 minutes)
-
-- what are doctests
-- two usage scenarios - docstrings & stand alone files
-- how they work demo and examples.
-- 10 minute work time - exercises
-
-Wrap up
-=======
-
-Wrapping up and questions (20 minutes)
-
-- where to go from here
-- quesitons and student topics
-



More information about the pytest-commit mailing list