<snip>
>> +        mocked_init_url.start()
>> +        mocked_init_url.return_value = 'sqlite:///{}'.format(tmpfile)
>
> you should use an in memory database.
<snip>

1) memory database cannot be used with our current setup when access
to database is used in different areas
2) When tests are run in current state, multiple connections are used
to add/search/edit/remove database entries, so test fails with
"sqlite3.OperationalError: no such table:" errors

Tests run fine when using a file-based database

-- 
https://code.launchpad.net/~alisonken1/openlp/projector_source_edit_fix/+merge/246862
Your team OpenLP Core is subscribed to branch lp:openlp.

_______________________________________________
Mailing list: https://launchpad.net/~openlp-core
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openlp-core
More help   : https://help.launchpad.net/ListHelp

Reply via email to