Пример #1
0
 def test_get_none(self):
     manager = ProtocolManager()
     assert list(manager.get_all()) == []
Пример #2
0
async def get_protocols(
        protocol_manager: ProtocolManager = Depends(get_protocol_manager)):
    return route_models.MultiProtocolResponse(
        data=[_to_response(u) for u in protocol_manager.get_all()],
        links=get_root_links(router)
    )