File tree Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 66
77import pytest
88
9- from meshtastic .analysis .__main__ import main
9+ try :
10+ # Depends upon matplotlib & other packages in poetry's analysis group, not installed by default
11+ from meshtastic .analysis .__main__ import main
12+ except ImportError :
13+ pytest .skip ("Can't import meshtastic.analysis" , allow_module_level = True )
1014
1115
1216@pytest .mark .unit
Original file line number Diff line number Diff line change 1111from .. import BROADCAST_ADDR , LOCAL_ADDR
1212from ..mesh_interface import MeshInterface , _timeago
1313from ..node import Node
14- from ..slog import LogSet
15- from ..powermon import SimPowerSupply
14+ try :
15+ # Depends upon the powermon group, not installed by default
16+ from ..slog import LogSet
17+ from ..powermon import SimPowerSupply
18+ except ImportError :
19+ pytest .skip ("Can't import LogSet or SimPowerSupply" , allow_module_level = True )
1620
1721# TODO
1822# from ..config import Config
Original file line number Diff line number Diff line change 99from meshtastic import mt_config
1010
1111from ..tcp_interface import TCPInterface
12- from ..tunnel import Tunnel , onTunnelReceive
12+ try :
13+ # Depends upon pytap2, not installed by default
14+ from ..tunnel import Tunnel , onTunnelReceive
15+ except ImportError :
16+ pytest .skip ("Can't import Tunnel or onTunnelReceive" , allow_module_level = True )
1317
1418
1519@pytest .mark .unit
You can’t perform that action at this time.
0 commit comments