Skip to content

Commit 31f6afe

Browse files
committed
Explicitly import nxt.sensor sub-modules in tests
It was only working because pytest imports everything in nxt to look for docstrings. Make the test self contained.
1 parent 4833851 commit 31f6afe

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/test_sensors.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
import pytest
1616

1717
import nxt.sensor
18+
import nxt.sensor.analog
19+
import nxt.sensor.digital
20+
import nxt.sensor.generic
21+
import nxt.sensor.hitechnic
22+
import nxt.sensor.mindsensors
1823
from nxt.sensor import Mode, Port, Type
1924

2025

0 commit comments

Comments
 (0)