#4685 (Check whether a database is virgin)
by Luc Saffre · in Developers · assigned to Luc Saffre
Kurzbeschreibung
Kinder
Kommentare
- 4 Jahre ago von Luc Saffre about #4685 (Check whether a database is virgin) : I finally uncommented the check_virgin() test (in lino.api.doctest) because it's difficult to find the "culprit" and because this is not urgent.
- 4 Jahre ago von Luc Saffre about #4685 (Check whether a database is virgin) : Strange. I checked all the doctests that were run after the prep in avanti1. And none of them modifies anything in the database.
- 4 Jahre ago von Luc Saffre about #4685 (Check whether a database is virgin) : The welfare test suite is now passing; the issue for which I wrote the virginity test seems to have vanished. But in the book I detected several issues related to a demo db being modified by a test. There is still one such issue, in avanti1. I activated history_aware_logging for this project (and sa...
- 4 Jahre ago von Luc Saffre about #4685 (Check whether a database is virgin) : Still busy with getting my book test suite pass after this change.
- 4 Jahre ago von Luc Saffre about #4685 (Check whether a database is virgin) : Basic idea: "pm prep" writes a file dbhash.json with the number of rows for each database table. and lino.api.doctest checks whether the numbers have changed. This now works, and I now get an Exception: Database isn't virgin: {'users.User': (3, 4)}. The problem is that I still don't know which docte...
- 4 Jahre ago von Luc Saffre about #4685 (Check whether a database is virgin) : Created a new Ticket.