[devtools] Avoid db_cache collisions and mis-loading
This is done by stopping to share the db_cache between
TestDataBaseHandler instances
It may seem overkill, but is the only way I could get it to work
properly. I think the whole db caching code needs some rework to better
work with different db handlers.
Closes #4601328
from datetime import datetime
for rtype in ('cw_support', 'cw_dont_cross', 'cw_may_cross'):
drop_relation_type(rtype)
add_entity_type('CWSourceSchemaConfig')
if not 'url' in schema['CWSource'].subjrels:
add_attribute('CWSource', 'url')
add_attribute('CWSource', 'parser')
add_attribute('CWSource', 'latest_retrieval')