Files
paper-doc/backend/scripts
govin 54292eb231 backend: let the reference smoke test survive a populated library
It asserted that a search for "Wang" found one row and that the library was
empty when it finished — both true only of an empty database. The library it
runs against now holds 65 real references and 10 labels, so the run failed on
its own baseline rather than on anything it was testing.

Every row the run creates now carries a per-run token in its title, in one
contributor's name and in its label names, and each count is asserted against a
search for that token. A second, distinct token rides on the author name alone,
because searching for the first one finds every row the run made and "the
search matches an author" needs a string that is in exactly one place.

What the test means does not change: "the search found one row" is a statement
about this run, and the token is what makes it one.
2026-09-22 21:50:33 +08:00
..