cubicweb #2750684 check version of test database [open]

If you run tests with pytest, then hg upgrade the repository, then run pytest again, chances are you will run the tests with a database that has the wrong structure and data.

"cw-ctl start" will refuse to start if the db version is not the same as the code version on the filesystem, then ask to 'cw-ctl upgrade'.

Running the tests should do the same and stop if the versions are not consistent (or maybe recreate the test database without asking for confirmation).

done in<not specified>
closed by<not specified>