File tree 3 files changed +16
-4
lines changed
3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 6
6
7
7
import pytest
8
8
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 )
10
14
11
15
12
16
@pytest .mark .unit
Original file line number Diff line number Diff line change 11
11
from .. import BROADCAST_ADDR , LOCAL_ADDR
12
12
from ..mesh_interface import MeshInterface , _timeago
13
13
from ..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 )
16
20
17
21
# TODO
18
22
# from ..config import Config
Original file line number Diff line number Diff line change 9
9
from meshtastic import mt_config
10
10
11
11
from ..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 )
13
17
14
18
15
19
@pytest .mark .unit
You can’t perform that action at this time.
0 commit comments