Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > TestFixtures 1.6.2 released!

Reply
Thread Tools

TestFixtures 1.6.2 released!

 
 
Chris Withers
Guest
Posts: n/a
 
      09-23-2009
Hi All,

I'm pleased to announce a new release of TestFixtures.
This package is a collection of helpers and mock objects that are useful
when writing unit tests or doc tests.

This release fixes problems when using Comparison objects with instances
of Django models, so tests like the following will now work as expected:

from testfixtures import Comparison as C,compare

class TestUser(TestCase):

def test_create(self):
u = User(name='Test')
u.save()
t = User.objects.get(name='Test')
compare([C(User,name='Test',strict=False)],
list(User.objects.all()))

To find out more, please read here:

http://pypi.python.org/pypi/testfixtures

cheers,

Chris

--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk





 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
TestFixtures 1.9.2 Released! Chris Withers Python 0 04-20-2011 06:47 PM
TestFixtures 1.9.0 Released! Chris Withers Python 0 02-11-2011 04:07 PM
TestFixtures 1.8.0 Released! Chris Withers Python 0 01-14-2011 12:38 PM
TestFixtures 1.6.1 released! Chris Withers Python 0 09-06-2009 10:18 PM
TestFixtures 1.6.0 released! Chris Withers Python 0 06-18-2009 10:51 PM



Advertisments