1. 11 Feb, 2015 4 commits
  2. 10 Feb, 2015 2 commits
    • Chris Dent's avatar
      Add support for skipping or expecting failure on a test · f66480e6
      Chris Dent authored
      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.
      f66480e6
    • Chris Dent's avatar
      Make the test-limit test more robust · 4ef93c4b
      Chris Dent authored
      It wasn't counting the number of tests and it should to say it
      is just running one test.
      4ef93c4b
  3. 05 Feb, 2015 2 commits
    • Chris Dent's avatar
      Update docs for $RESPONSE changes. · 07bc4028
      Chris Dent authored
      07bc4028
    • Chris Dent's avatar
      Handle $RESPONSE templates in the current response · 5d9d0d4f
      Chris Dent authored
      In some APIs it is useful to refer to the response of a previous
      request in the response of this current request to, for example,
      verify that an ID continues to be used.
      
      Up to now $RESPONSE handling worked in url and data, this change
      adds it to response_strings and response_json_paths.
      
      As with all of the $RESPONSE handling, this is power that should
      really only be used when testing existing APIs. If you need a lot of
      this when you are developing new APIs YOU ARE DOING IT WRONG.
      5d9d0d4f
  4. 02 Feb, 2015 6 commits
    • Chris Dent's avatar
      release 0.5.1 · 8a304c49
      Chris Dent authored
      8a304c49
    • Chris Dent's avatar
      pep8 corrections · c2bac978
      Chris Dent authored
      c2bac978
    • Chris Dent's avatar
      Add a cover tox target to do coverage · 485be481
      Chris Dent authored
      Having coverage information will help improve future testing.
      
      Also add some POST tests to enhance coverage of the the SimpleWsgi
      test backend.
      485be481
    • Chris Dent's avatar
      Add a limit tox target · 1acaa8d6
      Chris Dent authored
      The limit tox target confirms that interception still works when
      limiting the tests that will be run.
      1acaa8d6
    • Chris Dent's avatar
      Correctly handle fixtures when selecting limited tests · 6304f952
      Chris Dent authored
      If a pattern is passed to the test runner such that only
      some tests in a YAML file are to be run, the unrequested
      tests are represented in the TestSuite as empty TestSuites.
      These do not have a 'fixtures' attribute. This can result
      in the WSGI-intercept not being discovered and installed.
      
      Instead of asking for the first test when looking for fixtures,
      we traverse the suite until we find the first test which has
      it.
      6304f952
    • Chris Dent's avatar
      Provide a more descriptive message on missing header · 47669e0b
      Chris Dent authored
      If a test specifies a header which is not present in the response
      provide a verbose message of what headers are present.
      
      Fixes #10.
      47669e0b
  5. 26 Jan, 2015 3 commits
  6. 22 Jan, 2015 2 commits
    • Chris Dent's avatar
      Update interception doc · 31ce5d8b
      Chris Dent authored
      31ce5d8b
    • Chris Dent's avatar
      Delay wsgi interception until after fixtures · c65dbba2
      Chris Dent authored
      Some WSGI applications require a lot of prior setup before they can
      be use. Since we want most of that setup to happen in fixtures,
      wsgi-interception is delayed until after all extant fixtures have been
      started. This is done with a built in default fixture that is run as
      the most deeply nested of the context managers.
      
      The intecept callable is passed on along to the tests so that suite
      can be made aware of and use it when using the intercept context
      manager. If the callable is a function, when it is passed into the
      class builder, it can become bound to the TestCase. This binding is
      unbound in the caller.
      c65dbba2
  7. 21 Jan, 2015 1 commit
  8. 16 Jan, 2015 1 commit
    • Chris Dent's avatar
      Extract SimpleWsgi to its own module. · 35c731b5
      Chris Dent authored
      For clarity and readability.
      
      This is starting to point out that there really ought to be unit
      tests for the various modules. The gabbits confirm things end to end
      but not the details.
      35c731b5
  9. 14 Jan, 2015 7 commits
  10. 09 Jan, 2015 2 commits
    • Chris Dent's avatar
      Release 0.3.1 · 00d5c765
      Chris Dent authored
      * Better jsonpath error messages
      00d5c765
    • Chris Dent's avatar
      Be more informative when JSONpaths do not match · 38e409b8
      Chris Dent authored
      When the YAML files uses JSONpaths that do not or cannot match we
      need to know which patch it was that didn't match, otherwise we just
      get a rather lame error message that is not useful information for
      fixing the problem.
      38e409b8
  11. 08 Jan, 2015 3 commits
  12. 06 Jan, 2015 2 commits
  13. 05 Jan, 2015 1 commit
  14. 04 Jan, 2015 1 commit
  15. 01 Jan, 2015 3 commits