(self, urls: tp.List[str])
| 102 | |
| 103 | class MultiServerWikidataQueryClient: |
| 104 | def __init__(self, urls: tp.List[str]): |
| 105 | self.clients = [WikidataQueryClient(url) for url in urls] |
| 106 | self.executor = ThreadPoolExecutor(max_workers=len(urls)) |
| 107 | # # test connections |
| 108 | # start_time = time.perf_counter() |
| 109 | # self.test_connections() |
| 110 | # end_time = time.perf_counter() |
| 111 | # print(f"Connection testing took {end_time - start_time} seconds") |
| 112 | |
| 113 | def test_connections(self): |
| 114 | def test_url(client): |
nothing calls this directly
no test coverage detected