Skip to content

Commit 84b14f9

Browse files
committed
tests: Add imports that mypy --platform complains about
1 parent 4d15aff commit 84b14f9

16 files changed

+16
-0
lines changed

tests/acceptance/test_examples.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import pytest
1010

1111
import nidaqmx
12+
import nidaqmx.system
1213

1314
EXAMPLES_DIRECTORY = Path(__file__).parent.parent.parent / "examples"
1415
EXAMPLE_PATHS = [p for p in EXAMPLES_DIRECTORY.glob("**/*.py") if p.name != "__init__.py"]

tests/component/system/storage/test_persisted_channel.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import pytest
22

33
import nidaqmx
4+
import nidaqmx.system
45
from nidaqmx.system.storage import PersistedChannel
56

67

tests/component/task/test_in_stream.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import pytest
55

66
import nidaqmx
7+
import nidaqmx.system
78
from nidaqmx.constants import AcquisitionType
89

910
# With a simulated X Series, setting ai_max/min to +/-2.5 V coerces the hardware range

tests/component/task/test_out_stream.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import pytest
33

44
import nidaqmx
5+
import nidaqmx.system
56

67

78
@pytest.fixture(params=[1, 2])

tests/component/test_stream_readers_ai.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import pytest
88

99
import nidaqmx
10+
import nidaqmx.system
1011
from nidaqmx.stream_readers import (
1112
AnalogMultiChannelReader,
1213
AnalogSingleChannelReader,

tests/component/test_stream_readers_ci.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import pytest
88

99
import nidaqmx
10+
import nidaqmx.system
1011
from nidaqmx.stream_readers import CounterReader
1112

1213
SIGNAL_TO_MEASURE = "100kHzTimebase"

tests/component/test_stream_readers_di.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import pytest
88

99
import nidaqmx
10+
import nidaqmx.system
1011
from nidaqmx.constants import LineGrouping
1112
from nidaqmx.stream_readers import (
1213
DigitalMultiChannelReader,

tests/component/test_stream_writers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import pytest
55

66
import nidaqmx
7+
import nidaqmx.system
78
from nidaqmx.stream_writers import AnalogMultiChannelWriter, AnalogSingleChannelWriter
89

910

tests/component/test_stream_writers_ao.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import pytest
66

77
import nidaqmx
8+
import nidaqmx.system
89
from nidaqmx.stream_writers import (
910
AnalogMultiChannelWriter,
1011
AnalogSingleChannelWriter,

tests/component/test_stream_writers_co.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import pytest
77

88
import nidaqmx
9+
import nidaqmx.system
910
from nidaqmx.constants import AcquisitionType
1011
from nidaqmx.stream_writers import CounterWriter
1112
from nidaqmx.types import CtrFreq, CtrTick, CtrTime

tests/component/test_stream_writers_do.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import pytest
77

88
import nidaqmx
9+
import nidaqmx.system
910
from nidaqmx.constants import LineGrouping
1011
from nidaqmx.stream_writers import DigitalMultiChannelWriter, DigitalSingleChannelWriter
1112
from nidaqmx.utils import flatten_channel_string

tests/component/test_task.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import pytest
22

33
import nidaqmx
4+
import nidaqmx.system
45
from nidaqmx.constants import ShuntCalSelect, ShuntCalSource, ShuntElementLocation
56
from nidaqmx.error_codes import DAQmxErrors
67
from nidaqmx.errors import RpcError

tests/component/test_task_events.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import pytest
88

99
import nidaqmx
10+
import nidaqmx.system
1011
from nidaqmx.constants import AcquisitionType, EveryNSamplesEventType, Signal
1112
from nidaqmx.error_codes import DAQmxErrors
1213
from nidaqmx.errors import DaqResourceWarning, RpcError

tests/component/test_task_read_ai.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import pytest
44

55
import nidaqmx
6+
import nidaqmx.system
67
from nidaqmx.constants import AcquisitionType
78

89

tests/legacy/test_read_exceptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import pytest
55

66
import nidaqmx
7+
import nidaqmx.stream_readers
78
from nidaqmx.constants import AcquisitionType, BusType, Level, TaskMode
89
from nidaqmx.error_codes import DAQmxErrors
910
from nidaqmx.errors import RpcError

tests/legacy/test_write_exceptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import pytest
55

66
import nidaqmx
7+
import nidaqmx.stream_writers
78
from nidaqmx.constants import AcquisitionType, BusType, RegenerationMode
89
from nidaqmx.error_codes import DAQmxErrors
910

0 commit comments

Comments
 (0)