refactor: move modules into core/ sub-package, normalize naming
Phase 1 of package refactor. Moves all source modules into pm3py/core/ with file renames (hf_14a→hf_iso14a, hf_15→hf_iso15, hf_mf→hf_mfc) and client attribute normalization (hf.a14→hf.iso14a, hf.mf→hf.mfc). pm3py/__init__.py re-exports from core for backward compat. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import struct
|
||||
import asyncio
|
||||
from unittest.mock import AsyncMock
|
||||
from pm3py.protocol import Cmd
|
||||
from pm3py.transport import PM3Response
|
||||
from pm3py.hw import HWCommands
|
||||
from pm3py.core.protocol import Cmd
|
||||
from pm3py.core.transport import PM3Response
|
||||
from pm3py.core.hw import HWCommands
|
||||
|
||||
def make_ng_response(cmd: int, status: int, payload: bytes) -> PM3Response:
|
||||
return PM3Response(cmd=cmd, status=status, reason=0, ng=True, data=payload)
|
||||
@@ -91,7 +91,7 @@ def test_led_brightness():
|
||||
|
||||
def test_led_pwm_non_capable_raises():
|
||||
"""PWM on a non-PWM LED should raise PM3Error."""
|
||||
from pm3py.transport import PM3Error
|
||||
from pm3py.core.transport import PM3Error
|
||||
import pytest
|
||||
transport = make_mock_transport()
|
||||
hw = HWCommands(transport)
|
||||
|
||||
Reference in New Issue
Block a user