Hi Benoit. As far as I know, when you want to write tests based off the demo site, you can use the test suite from testutils with warn_user=True.
If I have understood correctly, this is the major difference between unit-tests (ala xx_tests.py) and regression-tests (ala xx_regression_tests.py) inside Invenio. Cheers, Jan On Tue, 2011-08-02 at 14:34 -0400, Benoit Thiell wrote: > Hi. > > I am rewriting search_engine_utils.get_fieldvalues to provide a > fallback method if the bibxxx tables have not been populated at upload > time. I wonder now what would be the best way to test this method as > the tests would rely on the state of the database. > > Can I expect that the database is initialized to the demo site? Or is > there another way for me to test the correctness of this widely-used > function? > > Cheers. > -- ------- Jan Age Lavik CERN System Librarian Scientific Information Science (GS-SIS) Phone: +41 22 767 9092 Office: 3-1-011
