We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ee4772 commit 8367ca0Copy full SHA for 8367ca0
tests/support.py
@@ -68,7 +68,14 @@ def fixture(self, fixture_path):
68
return path, entity
69
70
def get_emitted(self, schema=None):
71
- entities = self.manager.get_emitted()
+ entities = list(self.manager.db.iterate())
72
+ # test dehydrated emitted:
73
+ emitted = self.manager.get_emitted()
74
+ equal = {e.id for e in entities} == {e.id for e in emitted}
75
+ if not equal:
76
+ # special case of directory test: the child file is emitted in
77
+ # another manager instance, but the Folder entity is there:
78
+ assert len({e.id for e in entities} & {e.id for e in emitted}) == 1
79
if schema is not None:
80
entities = [e for e in entities if e.schema.is_a(schema)]
81
return entities
0 commit comments