Skip to content

Commit 7e7738e

Browse files
committed
✅ (tests/test_image) Reset emitted store for tests to pass
1 parent 8367ca0 commit 7e7738e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_image.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from ftmq.store.memory import MemoryStore
2+
13
from tests.support import TestCase
24

35

@@ -46,6 +48,8 @@ def test_tesseract_ocr_regression(self):
4648
}
4749

4850
for test_image_type in test_data:
51+
# flush store for emitted test assertion to not fail (see self.get_emitted)
52+
self.manager.emitted = MemoryStore()
4953
fixture_path, entity = self.fixture(test_data[test_image_type]["file"])
5054
self.manager.ingest(fixture_path, entity)
5155

0 commit comments

Comments
 (0)