← Back to team overview

openlp-core team mailing list archive

Re: [Merge] lp:~alisonken1/openlp/projector_source_edit_fix into lp:openlp

 

<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.


References