117 Commits

Author SHA1 Message Date
Chris Dent
e9de3707c8 Document the change to template handling 2015-03-01 19:14:03 +00:00
Chris Dent
b694932b57 Enable $RESPONSE handling in response_headers
Because the other replacers do too.
2015-02-13 18:51:24 +00:00
Chris Dent
9c23732ee9 All references to prior response headers in the current test.
Available in url, response_headers, response_strings and
response_json_paths. As $HEADERS['<header>'].

Fixes #18
2015-02-13 18:44:34 +00:00
Chris Dent
f66480e6b4 Add support for skipping or expecting failure on a test
This is needed because during the test writing process there
are often _many_ things that ought to succeed but don't that are
beyond the scope of the immediate project. For example a framework
not properly returning a 405 when a method is not allowed, or
returning 405 but then not returning the Allow header.

This feature required switching the base test case from unittest to
testtools. The former has changed (in Python 3.4) the internals of how
expecting failure is handled and as a result making it work with
dynamically generated tests was proving extremely difficult.

An additional shell driven test is provided for coverage of
skip and fail.
2015-02-10 23:00:27 +00:00
Chris Dent
07bc402834 Update docs for $RESPONSE changes. 2015-02-05 17:12:17 +00:00
Chris Dent
31ce5d8bb8 Update interception doc 2015-01-22 22:21:53 +00:00
Chris Dent
3bb36fa0dc Allow a fixture to cause a file to skip all tests
If a fixture class raises unittest.case.SkipTest then all the tests
in the YAML file associated with that test will be skipped.
2015-01-21 19:00:22 +00:00
Chris Dent
143221e262 Don't include version and release info in docs. 2015-01-14 14:34:34 +00:00
Chris Dent
2855f226ca Allow regexp for response header expected values
If the expected value for a response_header is wrapped in '/'
the value is treated as a regular expression and passed to
`testtools.TestCase.assertRegexpMatches`.

Fixes #6
2015-01-08 17:10:20 +00:00
Chris Dent
34c6dce898 Add some documentation for fixtures.
This is rather limited for now, as fixtures are not yet sufficiently
fleshed out to have a clear idea of how they are going to work.
2015-01-06 14:06:17 +00:00
Chris Dent
ee1cfc7405 Update the format information with data's capabilities.
data can handle a string, a string indicating a file, and a data
structure.
2015-01-01 17:52:03 +00:00
Chris Dent
5837fe9f40 Don't bother with docs coverage at this time. 2015-01-01 17:15:08 +00:00
Chris Dent
77bdacbe01 Update the target host information. 2015-01-01 17:13:57 +00:00
Chris Dent
251873dd6e Update the YAML format docs 2015-01-01 16:34:03 +00:00
Chris Dent
0ccf7f7123 Make a make rule for making the docs
And make sure the format page notes the fact that is it incomplete.
2014-12-31 22:12:38 +00:00
Chris Dent
207964729b Add some initial doc files
Still lots to fill in here, but it's better than nothing.
2014-12-31 21:42:50 +00:00
Chris Dent
d47efe60b5 Initial commit of sphinx infrastructure 2014-12-31 17:08:23 +00:00