Skip to content

Commit 3b2c003

Browse files
committed
fix(mongodb): satisfy ruff format spacing for custom APIs and tests
1 parent 7eef98b commit 3b2c003

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

scaleway/scaleway/mongodb/v1/custom_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from .api import MongodbV1API
77

88

9+
910
def _ensure_tzaware_utc(value: Optional[datetime]) -> Optional[datetime]:
1011
if value is None:
1112
return None

scaleway/scaleway/mongodb/v1/tests/test_custom_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from tests.utils import initialize_client_test
88

99

10+
1011
@pytest.mark.parametrize("method_name", ["create_snapshot", "update_snapshot"])
1112
def test_utils_api_coerces_naive_datetime_to_utc(
1213
monkeypatch: pytest.MonkeyPatch, method_name: str

scaleway/scaleway/mongodb/v1alpha1/custom_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from .api import MongodbV1Alpha1API
77

88

9+
910
def _ensure_tzaware_utc(value: Optional[datetime]) -> Optional[datetime]:
1011
if value is None:
1112
return None

0 commit comments

Comments
 (0)