Skip to content

Commit 8eb75a2

Browse files
junyyang-amdclaude
andcommitted
Bind the P/D admission fixtures by assignment, not import
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 1aedd57 commit 8eb75a2

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎tests/test_pd_refit_stamp.py‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
from unittest import mock
1212

1313
import pytest
14+
import test_pd_admission
1415
from conftest import MockConfig
1516
from test_kv_change import _engine, _run, _running, _wired
16-
from test_pd_admission import build, mooncake_module, receive_success # noqa: F401
17+
from test_pd_admission import receive_success
1718

1819
from atom.model_engine.engine_utility import (
1920
PAUSE_GENERATION_CMD,
@@ -25,6 +26,10 @@
2526

2627
UPDATE = "update_weights_from_disk"
2728

29+
# A Mooncake P/D consumer scheduler, as the admission tests build it.
30+
build = test_pd_admission.build
31+
mooncake_module = test_pd_admission.mooncake_module
32+
2833

2934
def _stamped(request, stamp):
3035
seq = request()
@@ -141,7 +146,7 @@ def test_a_stale_stamp_waits_for_its_transfer_to_finish(build):
141146

142147
@pytest.mark.parametrize("enable_rl", [True, False])
143148
def test_p_stamps_its_handoff_only_with_enable_rl(
144-
monkeypatch, mooncake_module, seq_factory, enable_rl # noqa: F811
149+
monkeypatch, mooncake_module, seq_factory, enable_rl
145150
):
146151
config = MockConfig(
147152
num_kvcache_blocks=64,

0 commit comments

Comments
 (0)