summaryrefslogtreecommitdiff
path: root/testtools/content.py
Commit message (Collapse)AuthorAgeFilesLines
* Overhaul exception reporting.Robert Collins2015-03-101-65/+52
| | | | | | | | | | | unittest2 recently added the ability to show local variables in tracebacks as https://github.com/testing-cabal/testtools/issues/111 requested for us. Reusing that requires some refactoring of our code, in particular where we were reimplementing bits of the traceback module. Now we can just hard-depend on traceback2 and linecache2 which are brought in by unittest2 1.0.0. Change-Id: Ieb3268029d26b48ed4fcd25ed644bd339f6aa3fb
* Fixed docstrings in content.py.Corey Goldberg2014-10-171-20/+20
|
* Make text_content more explicit about the types that it accepts.Thomi Richards2014-10-161-3/+5
|
* Raise a TypeError when text_content is passed bytes, so we get an error as ↵Thomi Richards2014-05-161-0/+3
| | | | early as possible.
* Remove workaround for getincrementaldecoder not being in 2.4.Daniel Watkins2013-12-031-12/+6
|
* Use a context manager as suggested by a comment.Daniel Watkins2013-12-031-7/+6
|
* Add testtools.StacktraceContent.Thomi Richards2013-11-261-0/+31
|
* Export testtools.content.json_content properly.Robert Collins2013-11-081-0/+1
| | | | Change-Id: I5b6637284e595ee5dff52af0afec8d21c84a47cf
* Comment about disabled testJonathan Lange2013-10-261-0/+1
|
* Add StackLinesContent, reimplement TracebackContent to use this new class.Thomi Richards2013-10-251-35/+73
|
* Remove unused code.Thomi Richards2013-10-231-11/+0
|
* Disable hiding internal frames within user frames.Robert Collins2013-06-161-1/+1
| | | | Per bug 1188420 this currently completely hides important context.
* * Testtools now depends on extras, a small library split out from it to containRobert Collins2013-01-181-1/+2
| | | | | | | | | generally useful non-testing facilities. Since extras has been around for a couple of testtools releases now, we're making this into a hard dependency of testtools. (Robert Collins) * Testtools now uses setuptools rather than distutils so that we can document the extras dependency. (Robert Collins)
* * ``content_from_file`` and ``content_from_stream`` now accept seek_offset andRobert Collins2012-12-111-5/+14
| | | | | seek_whence parameters allowing them to be used to grab less than the full stream, or to be used with StringIO streams. (Robert Collins, #1088693)
* Fix json_content helper on pythons with a unicode native str typeMartin2012-07-271-2/+6
|
* Add a JSON content type.Jonathan Lange2012-07-131-5/+2
|
* Add a json_content helper.Jonathan Lange2012-07-131-0/+8
|
* Copyright. FlakesJonathan Lange2012-02-041-1/+1
|
* Use TracebackContent as the point to pivot whether or not we hide stack.Jonathan Lange2012-02-041-3/+9
|
* Give TracebackContent the ability to format exceptions itself, rather thanJonathan Lange2012-02-041-4/+57
| | | | delegating to TestResult
* Add as_text, a content helper.Jonathan Lange2012-02-041-1/+10
|
* More doc tweaksJonathan Lange2011-12-051-3/+3
|
* Remove the decorators, correctly credit lifeless in the news file.Jonathan Lange2011-04-011-32/+10
|
* Tweaks for Jono's consideration.Robert Collins2011-02-191-28/+72
|
* More tests for attach_file, make lazy read work.Jonathan Lange2011-02-011-5/+9
|
* read_now => lazy_read, as per review.Jonathan Lange2011-02-011-11/+18
|
* Change the order of parameters to attach_fileJonathan Lange2011-02-011-1/+1
|
* Move attachFile from TestCase to be a standalone function.Jonathan Lange2011-02-011-0/+26
|
* Move Content.from_stream to be content_from_streamJonathan Lange2011-02-011-54/+55
|
* Delete from_text.Jonathan Lange2011-02-011-9/+8
|
* Copyright bumpJonathan Lange2011-02-011-1/+1
|
* Merge trunk.Jonathan Lange2011-02-011-1/+1
|\
| * Get it right.Jonathan Lange2011-01-221-1/+1
| |
* | Add eager loading options to from_file and from_streamJonathan Lange2010-12-291-8/+19
| |
* | More documentation.Jonathan Lange2010-12-291-0/+6
| |
* | attachFile helper.Jonathan Lange2010-12-291-4/+6
| |
* | Remove duplication.Jonathan Lange2010-12-291-9/+14
| |
* | Basic convenience method for reading content from a file.Jonathan Lange2010-12-291-0/+22
| |
* | Make it a classmethod, and make text_content one too.Jonathan Lange2010-12-291-23/+32
| |
* | Add a `stream_content` helper.Jonathan Lange2010-12-291-0/+22
|/
* Make sure a byte string is used to join iterated bytes in Content obejctsMartin2010-11-161-2/+5
|
* Add a convenience function for string content.Jonathan Lange2010-10-281-1/+9
|
* testtools.utils has been renamed to testtools.compat. ImportingRobert Collins2010-06-231-3/+3
|\ | | | | | | | | | | | | | | | | testtools.utils will now generate a deprecation warning. Add machinery for Python 2 to create unicode tracebacks like those used by Python 3. This means testtools no longer throws on encountering non-ascii filenames, source lines, or exception strings when displaying test results. Largely contributed by Martin[gz] with some tweaks from Robert Collins.
| * Move most of utils module to compat and put iterate_tests in testsuite moduleMartin2010-06-181-1/+1
| |
| * First pass at implementing unicode tracebacks for Python 2Martin2010-05-251-2/+2
|/
* Fix many simple mistakes in the epytext.Jonathan Lange2010-01-161-1/+1
|
* Add a 'make apidocs' target, and fix the docstrings with errors.Jonathan Lange2010-01-161-1/+1
|
* Truth in copyright statements.Jonathan Lange2010-01-011-1/+1
|
* Lots of little coding cleanupsJonathan Lange2009-12-311-3/+3
|
* Remove trailing whitespace.Jonathan Lange2009-12-311-3/+3
|