testtools-dev team mailing list archive
-
testtools-dev team
-
Mailing list archive
-
Message #00589
[Bug 694126] Re: Convenience method for attaching files as details
** Changed in: testtools
Status: In Progress => Fix Committed
** Changed in: testtools
Milestone: None => next
--
You received this bug notification because you are a member of testtools
developers, which is subscribed to testtools.
https://bugs.launchpad.net/bugs/694126
Title:
Convenience method for attaching files as details
Status in testtools:
Fix Committed
Bug description:
A very common use case for details is to attach a file to a test run. It would be nice if there were a mindless way of doing this with a syntax like::
self.attachFile('file-name', '/path/to/file', mime_type='text/html')
Or something similar.
References