minor fixes

This commit is contained in:
Helmut Merz 2024-03-18 09:42:51 +01:00
parent 33b1cbe823
commit 2d74cfb208
3 changed files with 2 additions and 7 deletions

View file

@ -1,3 +0,0 @@
# scopes.interfaces

View file

@ -21,7 +21,7 @@ class IContainer(ITraversable):
"""Store the `value` under the `key`.
May modify `value` so that the attributes referencing this object
and the value object (e.g. `parent´ and `name`) are stored correctly."""
and the value object (e.g. `parent` and `name`) are stored correctly."""
class IReference(Interface):

View file

@ -78,11 +78,9 @@ def test_type(self, config):
storage = config.storageFactory(config.dbschema)
storage.dropTable('types')
concept.setupCoreTypes(storage)
types = storage.getContainer(concept.Type)
tps = list(types.query())
self.assertEqual(len(tps), 6)
self.assertEqual(tps[0].name, 'track')
tfolder = types.queryLast(name='folder')
fldrs = list(tfolder.values())
@ -103,7 +101,7 @@ def test_topic(self, config):
ttopic = types.queryLast(name='topic')
self.assertEqual(ttopic.name, 'topic')
ftopics.setTarget(ttopic)
self.assertEqual(ftopics.ref, 'type-6')
self.assertEqual(ftopics.getTarget().name, 'topic')
tp_itc = topic.Topic('itc', data=dict(
title='ITC', description='Information and Communication Technology'))