def testsolver(): mock_ws = AsyncMock(spec=Workspace) mock_ws.storage = "mock_storage" mock_ws.get_container_uri = AsyncMock( return_value="mock_container_uri/foo/bar") testsolver = Solver(mock_ws, "Microsoft", "SimulatedAnnealing", "json", "json") return testsolver
def mock_ws(): mock_ws = AsyncMock() mock_ws.get_container_uri = AsyncMock(return_value = "mock_container_uri/foo/bar") return mock_ws