[Zope3-dev] Re: Bogus change to zope.app.rdb

Steve Alexander steve@cat-box.net
Fri, 04 Jul 2003 16:08:53 +0300


> The problem is: there is a test for the behavior, but It is done based
> on dummy data,

A unit test really should be based on dummy data.

Another developer can read the dummy data, read the source code, and 
determine that the source code looks reasonable.

If the dummy data doesn't reflect real use well enough, we need to add 
better dummy data.


> and not a real rdb connection, so I cant really tell if
> the problem is a fault of the mysqldb connector or if the test is
> broken.

In that case, the mysqldb connector needs better unit tests.

You might also consider writing a functional test to test the 
interaction between the rdb code and the mysql code.


--
Steve Alexander