Added test coverage for the '_use_cache' option of event sourced repos.
@@ -5,3 +5,9 @@ from eventsourcing.tests.stored_event_repository_tests.test_python_objects_store
class TestExampleApplicationWithPythonObjects(PythonObjectsRepoTestCase, ExampleApplicationTestCase):
pass
+
+class TestExampleApplicationWithPythonObjectsUseCache(PythonObjectsRepoTestCase, ExampleApplicationTestCase):
+ def construct_application(self):
+ app = super(TestExampleApplicationWithPythonObjectsUseCache, self).construct_application()
+ app.example_repo._use_cache = True
+ return app
