Skip to content

Commit c5b610f

Browse files
committed
style: some linting and remove comments
1 parent ef1dc94 commit c5b610f

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

eventsourcingdb_client_python/handlers/ping.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,11 @@ async def ping(client: AbstractBaseClient) -> None:
88
response = await client.http_client.get('/api/v1/ping')
99
response_body = bytes.decode(await response.body.read(), encoding='utf-8')
1010

11-
"""if response.status_code != HTTPStatus.OK or response_body != HTTPStatus.OK.phrase:
12-
raise ServerError(f'Received unexpected response: {response_body}')"""
13-
1411
try:
1512
response_json = json.loads(response_body)
1613
except json.JSONDecodeError:
1714
pass
1815
else:
1916
if isinstance(response_json, dict) and response_json.get('status') == 'ok':
20-
return
21-
# Wenn weder altes noch neues Format passt
17+
return None
2218
raise ServerError(f'Received unexpected response: {response_body}')

tests/shared/docker/image.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,8 @@ def run(self, command: list[str], is_detached: bool, do_expose_ports: bool) -> C
1616
if is_detached:
1717
docker_command.append('-d')
1818

19-
2019
if do_expose_ports:
2120
docker_command.append('-P')
22-
23-
"""if do_expose_ports:
24-
# -P behalten und explizite Ports hinzufügen
25-
docker_command.append('-P')
26-
docker_command.extend(['-p', '3000:3000'])"""
27-
28-
29-
3021

3122
docker_command.append(self.__get_full_name())
3223
docker_command.extend(command)

0 commit comments

Comments
 (0)