From 01f098296870cf56f835fa1222607d8216f52811 Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Mon, 22 Jun 2015 15:12:20 +0200 Subject: prettify html docs --- libpathod/templates/docs_test.html | 70 ++++++++++++++++++-------------------- 1 file changed, 34 insertions(+), 36 deletions(-) (limited to 'libpathod/templates/docs_test.html') diff --git a/libpathod/templates/docs_test.html b/libpathod/templates/docs_test.html index 25205d41..5db45f3f 100644 --- a/libpathod/templates/docs_test.html +++ b/libpathod/templates/docs_test.html @@ -1,52 +1,50 @@ -{% extends "docframe.html" %} -{% block body %} +{% extends "docframe.html" %} {% block body %} -
-
+

The libpathod.test module is a light, flexible testing layer for HTTP clients. + It works by firing up a Pathod instance in a separate thread, letting you use Pathod's + full abilities to generate responses, and then query Pathod's internal logs to establish + what happened. All the mechanics of startup, shutdown, finding free ports and so forth + are taken care of for you. +

-

The libpathod.test module is a light, flexible testing layer - for HTTP clients. It works by firing up a Pathod instance in a separate - thread, letting you use Pathod's full abilities to generate responses, - and then query Pathod's internal logs to establish what happened. All - the mechanics of startup, shutdown, finding free ports and so forth are - taken care of for you.

+

The canonical docs can be accessed using pydoc:

-

The canonical docs can be accessed using pydoc:

+
pydoc libpathod.test
-
pydoc libpathod.test
+

+ The remainder of this page demonstrates some common interaction patterns using + nose. These examples are also applicable with only minor modification to most + commonly used Python testing engines. +

-

The remainder of this page demonstrates some common interaction - patterns using nose. These examples - are also applicable with only minor modification to most commonly used - Python testing engines.

- -
-
-

Context Manager

- - {% include "examples_context.html" %} +
+ -
-
-
-

One instance per test

+ {% include "examples_context.html" %} + - {% include "examples_setup.html" %} +
+ -
-

One instance per suite

- {% include "examples_setupall.html" %} -
-
+ {% include "examples_setup.html" %} + +
+ -{% endblock %} + {% include "examples_setupall.html" %} +
+{% endblock %} -- cgit v1.2.3