fix tests: avoid db locked error with sqlite3

This commit is contained in:
Helmut Merz 2024-09-20 15:21:56 +02:00
parent a4c24a44d8
commit c9cb428707
2 changed files with 4 additions and 2 deletions

View file

@ -1,3 +1,3 @@
python tests/test_postgres.py python tests/test_postgres.py $@
python tests/test_standard.py python tests/test_standard.py $@

View file

@ -94,6 +94,8 @@ def test_type(self, config):
def test_topic(self, config): def test_topic(self, config):
storage = config.storageFactory(config.dbschema) storage = config.storageFactory(config.dbschema)
storage.dropTable('rels')
rels = storage.getContainer(concept.Triple)
storage.dropTable('topics') storage.dropTable('topics')
topics = storage.getContainer(topic.Topic) topics = storage.getContainer(topic.Topic)
types = storage.getContainer(concept.Type) types = storage.getContainer(concept.Type)