tests: Make backend initialization tests backend-neutral
Exercise backend selection, caching and hooks using the backend selected for the test environment rather than unconditionally loading eventlet. Keep coverage of the eventlet default by mocking initialization, avoiding a dependency on eventlet merely to verify the selection policy.
Isolate backend globals during each test and restore their previous values afterward, preserving the suite’s default hook. Also strengthen checks for cached object identity, required components and ignored hooks.
Change-Id: I248333279439a391779e07167141ae687e72ab7f Signed-off-by: Stephen Finucane sfinucan@redhat.com Assisted-by: OpenAI GPT-6.1-sol (via pi)
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号