[TIP] Test Data management (Prasanna Santhanam)

Chris Jerdonek chris.jerdonek at gmail.com
Mon Nov 19 16:03:05 PST 2012


On Mon, Nov 19, 2012 at 12:10 PM, Dan Wandschneider
<daniel.wandschneider at schrodinger.com> wrote:
> I've used external json and sqlite files, depending on the amount of
> data.  I then load it in setUpModule().

I do the same, but dynamically create unittest.TestCase instances from
that data using unittest's load_tests protocol:

http://docs.python.org/3/library/unittest.html#load-tests-protocol

--Chris

>
> On Mon, Nov 19, 2012 at 12:00 PM,
> <testing-in-python-request at lists.idyll.org> wrote:
>> Send testing-in-python mailing list submissions to
>>         testing-in-python at lists.idyll.org
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>         http://lists.idyll.org/listinfo/testing-in-python
>> or, via email, send a message with subject or body 'help' to
>>         testing-in-python-request at lists.idyll.org
>>
>> You can reach the person managing the list at
>>         testing-in-python-owner at lists.idyll.org
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of testing-in-python digest..."
>>
>> Today's Topics:
>>
>>    1. Test Data management (Prasanna Santhanam)
>>
>>
>> ---------- Forwarded message ----------
>> From: Prasanna Santhanam <prasanna.santhanam at citrix.com>
>> To: <testing-in-python at lists.idyll.org>
>> Cc:
>> Date: Mon, 19 Nov 2012 11:27:52 +0530
>> Subject: [TIP] Test Data management
>> Hi,
>>
>> How do folks manage test data that are fed to suites? Our integration
>> tests often carry test data as part of the suite:
>>
>> See: http://s.apache.org/2cb
>>
>> The Services class is essentially a set of data for running the Test
>> suites that follow.
>>
>> Does python provide an easier way to manage such growing test data? I
>> found factoryboy so far, but wanted to know what methods others were
>> using before I jumped in too far.
>>
>> Thanks,
>>
>> --
>> Prasanna.,
>>
>>
>>
>> _______________________________________________
>> testing-in-python mailing list
>> testing-in-python at lists.idyll.org
>> http://lists.idyll.org/listinfo/testing-in-python
>>
>
> _______________________________________________
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
> http://lists.idyll.org/listinfo/testing-in-python



More information about the testing-in-python mailing list