与 engine_no_threads 相同,但以工厂默认参数创建,供需要两个独立实例的测试使用。
()
| 47 | |
| 48 | @pytest.fixture |
| 49 | def engine_seeded(): |
| 50 | """与 engine_no_threads 相同,但以工厂默认参数创建,供需要两个独立实例的测试使用。""" |
| 51 | a = create_engine(seed=42, autostart=False) |
| 52 | b = create_engine(seed=42, autostart=False) |
| 53 | yield a, b |
| 54 | a.running = False |
| 55 | b.running = False |
| 56 | |
| 57 | |
| 58 | @pytest.fixture |
nothing calls this directly
no test coverage detected