Skip to content

Commit cd04a04

Browse files
committed
lint
1 parent 44b066a commit cd04a04

File tree

6 files changed

+14
-9
lines changed

6 files changed

+14
-9
lines changed

tests/component/system/test_system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,4 @@ def test_invalid_power_up_states___set_analog_power_up_states___throws_invalid_a
125125

126126
def test___system___set_nonexistent_property___raises_exception(system):
127127
with pytest.raises(AttributeError):
128-
system.nonexistent_property = "foo"
128+
system.nonexistent_property = "foo"

tests/component/task/test_timing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ def test___timing___cfg_burst_handshaking_export_clock___sets_properties(
157157
== ready_event_active_level
158158
)
159159

160+
160161
def test___timing___set_nonexistent_property___raises_exception(task: Task):
161162
with pytest.raises(AttributeError):
162-
task.timing.nonexistent_property = "foo"
163+
task.timing.nonexistent_property = "foo"

tests/component/task/test_triggers_properties.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,4 +189,4 @@ def test___reference_trigger___set_nonexistent_property___raises_exception(task:
189189

190190
def test___start_trigger___set_nonexistent_property___raises_exception(task: Task):
191191
with pytest.raises(AttributeError):
192-
task.triggers.start_trigger.nonexistent_property = "foo"
192+
task.triggers.start_trigger.nonexistent_property = "foo"

tests/component/test_export_signals.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import nidaqmx
44

5+
56
def test___export_signals___set_nonexistent_property___raises_exception(task: nidaqmx.Task):
67
with pytest.raises(AttributeError):
7-
task.export_signals.nonexistent_property = "foo"
8+
task.export_signals.nonexistent_property = "foo"

tests/component/test_task.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import pytest
21
import weakref
32

3+
import pytest
4+
45
import nidaqmx
56
import nidaqmx.system
67
from nidaqmx.constants import ShuntCalSelect, ShuntCalSource, ShuntElementLocation
@@ -208,4 +209,4 @@ def test___task___create_weakref___succeeds(task: nidaqmx.Task):
208209

209210
def test___task___set_nonexistent_property___raises_exception(task: nidaqmx.Task):
210211
with pytest.raises(AttributeError):
211-
task.nonexistent_property = "foo"
212+
task.nonexistent_property = "foo"

tests/component/test_watchdog.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import pytest
21
import weakref
3-
42
from typing import Callable
53

4+
import pytest
5+
66
from nidaqmx.constants import WatchdogAOExpirState, WatchdogCOExpirState
77
from nidaqmx.system import Device
88
from nidaqmx.system.watchdog import AOExpirationState, COExpirationState, WatchdogTask
@@ -130,4 +130,6 @@ def test___watchdog_expiration_states___set_nonexistent_property___raises_except
130130
watchdog_task.cfg_watchdog_ao_expir_states(expir_states)
131131

132132
with pytest.raises(AttributeError):
133-
watchdog_task.expiration_states[sim_9263_device.ao_physical_chans[0].name].nonexistent_property = "foo"
133+
watchdog_task.expiration_states[
134+
sim_9263_device.ao_physical_chans[0].name
135+
].nonexistent_property = "foo"

0 commit comments

Comments
 (0)