Skip to content

Commit 5f6958c

Browse files
chesterxgchenclaude
andcommitted
[2.7] Fix flake8 F401: remove unused imports in B1 pass-through tests
Remove three unused imports flagged by CI flake8: - test_pass_through_e2e.py: `from nvflare.fuel.utils import fobs` - test_pass_through_e2e.py: `from nvflare.fuel.utils.fobs import get_dot_handler` - test_pass_through.py: `_LAZY_BATCH_CTX_SUFFIX` All 27 B1 tests still pass. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 0be0db4 commit 5f6958c

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

tests/unit_test/fuel/f3/streaming/test_pass_through_e2e.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
import pytest
6262

6363
from nvflare.fuel.f3.cellnet.cell import Cell
64-
from nvflare.fuel.utils import fobs
6564
from nvflare.fuel.utils.fobs import FOBSContextKey
6665
from nvflare.fuel.utils.fobs.decomposers.via_downloader import LazyDownloadRef, _RefKey
6766
from nvflare.fuel.utils.fobs.lobs import dump_to_bytes, load_from_bytes
@@ -226,7 +225,6 @@ def test_forwarded_payload_carries_original_server_ref(self, cells):
226225
"""
227226
from io import BytesIO
228227

229-
from nvflare.fuel.utils.fobs import get_dot_handler
230228
from nvflare.fuel.utils.fobs.lobs import HEADER_LEN, MARKER_DATUM_TEXT, _Header
231229

232230
server, _ = cells

tests/unit_test/fuel/utils/fobs/test_pass_through.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
from nvflare.fuel.utils.fobs import FOBSContextKey
3636
from nvflare.fuel.utils.fobs.datum import Datum, DatumManager, DatumType
3737
from nvflare.fuel.utils.fobs.decomposers.via_downloader import (
38-
_LAZY_BATCH_CTX_SUFFIX,
3938
EncKey,
4039
EncType,
4140
LazyDownloadRef,

0 commit comments

Comments
 (0)