joelgoop/demokratikollen — pull request #74 by joharohl (2014-11-24 22:15:26+00:00)
Title: Fix behave tests

Dumps of the database can now be made by running the create_test_dumps.sh that should exist in `~` after a `vagrant provision`. This script create dumps of both the orm postgres and the mongodb. The dumps are small enough that I thought it would make sense to have them in the git.

Behave tests now use the `demokratikollen` as well as the normal mongodb database. When writing tests. Remember that the state of the databases are not defined. I.e. tests probably have to look at the data and use that to work out what should be represented. It complicates things somewhat but shouldn't be too much of an issue.

I will most likely migrate the unit tests to use the full db as well, but that is for another day.