(self)
| 167 | |
| 168 | @config.fixture() |
| 169 | def testing_engine(self): |
| 170 | from .. import engines |
| 171 | |
| 172 | def gen_testing_engine( |
| 173 | url=None, |
| 174 | options=None, |
| 175 | asyncio=False, |
| 176 | ): |
| 177 | if options is None: |
| 178 | options = {} |
| 179 | options["scope"] = "fixture" |
| 180 | return engines.testing_engine( |
| 181 | url=url, |
| 182 | options=options, |
| 183 | asyncio=asyncio, |
| 184 | ) |
| 185 | |
| 186 | yield gen_testing_engine |
| 187 | |
| 188 | engines.testing_reaper._drop_testing_engines("fixture") |
| 189 | |
| 190 | @config.fixture() |
| 191 | def async_testing_engine(self, testing_engine): |