Skip to content

Commit 39d80f7

Browse files
msch-nutrientclaude
andcommitted
Format code with ruff
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent eace66a commit 39d80f7

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

tests/integration/test_live_api.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99

1010
try:
1111
from . import integration_config # type: ignore[attr-defined]
12+
1213
API_KEY = integration_config.API_KEY
13-
BASE_URL = getattr(integration_config, 'BASE_URL', None)
14-
TIMEOUT = getattr(integration_config, 'TIMEOUT', 60)
14+
BASE_URL = getattr(integration_config, "BASE_URL", None)
15+
TIMEOUT = getattr(integration_config, "TIMEOUT", 60)
1516
except ImportError:
1617
API_KEY = None
1718
BASE_URL = None
@@ -33,6 +34,7 @@ def client(self):
3334
def sample_pdf_path(self):
3435
"""Get path to sample PDF file for testing."""
3536
import os
37+
3638
return os.path.join(os.path.dirname(__file__), "..", "data", "sample.pdf")
3739

3840
def test_client_initialization(self):

tests/unit/test_builder.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Unit tests for Builder API."""
22

3-
43
from nutrient_dws.builder import BuildAPIWrapper
54

65

@@ -42,10 +41,7 @@ def test_builder_chaining():
4241
def test_builder_set_output_options():
4342
"""Test setting output options."""
4443
builder = BuildAPIWrapper(None, "test.pdf")
45-
result = builder.set_output_options(
46-
metadata={"title": "Test Doc"},
47-
optimize=True
48-
)
44+
result = builder.set_output_options(metadata={"title": "Test Doc"}, optimize=True)
4945

5046
assert result is builder
5147
assert builder._output_options["metadata"]["title"] == "Test Doc"

tests/unit/test_http_client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Unit tests for HTTPClient."""
22

3-
43
from nutrient_dws.http_client import HTTPClient
54

65

0 commit comments

Comments
 (0)