TestDataGears provides helpers for loading, unloading, and reloading
of test data. It makes creating database entries to test your code a
simple matter of defining functions, and provides helpers so even that
is easier.
Eventually, TestDataGears will support dynamic generation of data that
is handled by inspecting your table definitions (with optional hints)
and generating data to fit a given set of requirements.
Features of the 0.1 release
---------------------------------
* Loading of data
* Unloading of data
* Reloading of data (remove->load)
* Helper function to remove every row in a SQLObject table.
How it work
---------------
TestDataGears installs an extension to the tg-admin command ('tg-admin
data'). This command has the following arguments available: load,
clear, reload. It looks in your projects base directory for dev.cfg
and a file named testdata.py If that file defines functions named
"load" and/or "clear" those are executed for the corresponding
commands.
TestDataGears 0.1 also comes with a helper function
(testdatagears.util.clear_table) which takes a SQLObject table as an
argument and quickly deletes every row in the table. This is the first
of many helpers that make generating (or deleting, as the case may be)
test data quick and easy.
Where can I find it?
------------------------
TestDataGears is available through easy_install as "testdatagears".
The project is hosted on google code (http://code.google.com/p/
testdatagears), please file any bug reports there.
-Adam
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---