Skip to content

Commit 59c47de

Browse files
kushalbakshiclaude
andcommitted
style: move imports to top of file to satisfy ruff E402
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 53b5002 commit 59c47de

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/unit/test_storage_adapter.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
import pytest
44

5+
import datajoint as dj
56
from datajoint.errors import DataJointError
7+
from datajoint.storage import StorageBackend
68
from datajoint.storage_adapter import (
79
StorageAdapter,
810
_adapter_registry,
@@ -105,9 +107,6 @@ def test_default_url_format(self):
105107
assert self.adapter.get_url({}, "data/file.dat") == "dummy://data/file.dat"
106108

107109

108-
from datajoint.storage import StorageBackend
109-
110-
111110
class _FakeFS:
112111
"""Minimal fake fsspec filesystem for testing."""
113112
protocol = "dummy"
@@ -178,9 +177,6 @@ def test_unsupported_protocol_error(self):
178177
backend._create_filesystem()
179178

180179

181-
import datajoint as dj
182-
183-
184180
class TestGetStoreSpecPluginDelegation:
185181
"""Tests for plugin protocol handling in Config.get_store_spec()."""
186182

0 commit comments

Comments
 (0)