VForWaTer / metacatalog

Modular metadata management platform for environmental data.
https://vforwater.github.io/metacatalog
GNU General Public License v3.0
3 stars 1 forks source link

Add version mismatch to tests #59

Closed mmaelicke closed 4 years ago

mmaelicke commented 4 years ago

The migration tests already test the exception if the database is behind the metacatalog version. The other way around is not tested.

This should be added to the migration tests by:

  1. select the current HEAD revision id.
  2. rename the file to something alembic does not recognize
  3. Test: -> Invoke connection. Should now raise a Runtime Error with correct mismatch message
  4. restore the file
  5. run check_no_version_mismatch again