Skip to content

Commit a32025f

Browse files
committed
fix style
1 parent 0295bf2 commit a32025f

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

integration-tests/fixtures/gaudi/service.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
from aiohttp import ClientConnectorError, ClientOSError, ServerDisconnectedError
1616
from docker.errors import NotFound
1717
import logging
18-
from gaudi.test_gaudi_generate import TEST_CONFIGS
1918
from huggingface_hub import AsyncInferenceClient, TextGenerationOutput
2019
import huggingface_hub
2120

@@ -166,7 +165,7 @@ def docker_launcher(
166165
model_id: str,
167166
test_name: str,
168167
tgi_args: List[str] = None,
169-
env_config: dict = None
168+
env_config: dict = None,
170169
):
171170
logger.info(
172171
f"Starting docker launcher for model {model_id} and test {test_name}"

integration-tests/gaudi/test_gaudi_generate.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import Any, Dict, Generator
22
from _pytest.fixtures import SubRequest
3-
from huggingface_hub import AsyncInferenceClient, TextGenerationOutput
3+
from huggingface_hub import AsyncInferenceClient
44
import pytest
55

66

@@ -237,12 +237,14 @@ def input(test_config: Dict[str, Any]) -> str:
237237

238238

239239
@pytest.fixture(scope="module")
240-
def tgi_service(gaudi_launcher, model_id: str, test_name: str, test_config: Dict[str, Any]):
240+
def tgi_service(
241+
gaudi_launcher, model_id: str, test_name: str, test_config: Dict[str, Any]
242+
):
241243
with gaudi_launcher(
242-
model_id,
243-
test_name,
244+
model_id,
245+
test_name,
244246
tgi_args=test_config.get("args", []),
245-
env_config=test_config.get("env_config", {})
247+
env_config=test_config.get("env_config", {}),
246248
) as tgi_service:
247249
yield tgi_service
248250

0 commit comments

Comments
 (0)