Skip to content

Commit

Permalink
lint2
Browse files Browse the repository at this point in the history
  • Loading branch information
zhindes committed Dec 13, 2024
1 parent 640a705 commit a7f0811
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion tests/component/task/test_in_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,4 +223,4 @@ def test___valid_path___start_new_file___returns_assigned_value(ai_task: nidaqmx

def test___in_stream___set_nonexistent_property___raises_exception(task: nidaqmx.Task):
with pytest.raises(AttributeError):
task.in_stream.nonexistent_property = "foo" # type: ignore[attr-defined]
task.in_stream.nonexistent_property = "foo" # type: ignore[attr-defined]
2 changes: 1 addition & 1 deletion tests/component/task/test_out_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ def test___odd_sized_array___write___returns_whole_samples(

def test___out_stream___set_nonexistent_property___raises_exception(task: nidaqmx.Task):
with pytest.raises(AttributeError):
task.out_stream.nonexistent_property = "foo" # type: ignore[attr-defined]
task.out_stream.nonexistent_property = "foo" # type: ignore[attr-defined]
2 changes: 1 addition & 1 deletion tests/component/task/test_timing.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,4 @@ def test___timing___cfg_burst_handshaking_export_clock___sets_properties(

def test___timing___set_nonexistent_property___raises_exception(task: Task):
with pytest.raises(AttributeError):
task.timing.nonexistent_property = "foo" # type: ignore[attr-defined]
task.timing.nonexistent_property = "foo" # type: ignore[attr-defined]
12 changes: 6 additions & 6 deletions tests/component/task/test_triggers_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,29 +164,29 @@ def test___ai_voltage_time_aware_task___reset_timestamp_property___returns_defau

def test___trigger___set_nonexistent_property___raises_exception(task: Task):
with pytest.raises(AttributeError):
task.triggers.nonexistent_property = "foo" # type: ignore[attr-defined]
task.triggers.nonexistent_property = "foo" # type: ignore[attr-defined]


def test___arm_start_trigger___set_nonexistent_property___raises_exception(task: Task):
with pytest.raises(AttributeError):
task.triggers.arm_start_trigger.nonexistent_property = "foo" # type: ignore[attr-defined]
task.triggers.arm_start_trigger.nonexistent_property = "foo" # type: ignore[attr-defined]


def test___handshake_trigger___set_nonexistent_property___raises_exception(task: Task):
with pytest.raises(AttributeError):
task.triggers.handshake_trigger.nonexistent_property = "foo" # type: ignore[attr-defined]
task.triggers.handshake_trigger.nonexistent_property = "foo" # type: ignore[attr-defined]


def test___pause_trigger___set_nonexistent_property___raises_exception(task: Task):
with pytest.raises(AttributeError):
task.triggers.pause_trigger.nonexistent_property = "foo" # type: ignore[attr-defined]
task.triggers.pause_trigger.nonexistent_property = "foo" # type: ignore[attr-defined]


def test___reference_trigger___set_nonexistent_property___raises_exception(task: Task):
with pytest.raises(AttributeError):
task.triggers.reference_trigger.nonexistent_property = "foo" # type: ignore[attr-defined]
task.triggers.reference_trigger.nonexistent_property = "foo" # type: ignore[attr-defined]


def test___start_trigger___set_nonexistent_property___raises_exception(task: Task):
with pytest.raises(AttributeError):
task.triggers.start_trigger.nonexistent_property = "foo" # type: ignore[attr-defined]
task.triggers.start_trigger.nonexistent_property = "foo" # type: ignore[attr-defined]
2 changes: 1 addition & 1 deletion tests/component/test_export_signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

def test___export_signals___set_nonexistent_property___raises_exception(task: nidaqmx.Task):
with pytest.raises(AttributeError):
task.export_signals.nonexistent_property = "foo" # type: ignore[attr-defined]
task.export_signals.nonexistent_property = "foo" # type: ignore[attr-defined]
2 changes: 1 addition & 1 deletion tests/component/test_task_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ def test___get_devices___shared_interpreter(ai_task: Task):

def test___task___set_nonexistent_property___raises_exception(task: Task):
with pytest.raises(AttributeError):
task.nonexistent_property = "foo" # type: ignore[attr-defined]
task.nonexistent_property = "foo" # type: ignore[attr-defined]
4 changes: 2 additions & 2 deletions tests/component/test_watchdog.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def test___watchdog_task___set_nonexistent_property___raises_exception(
watchdog_task = generate_watchdog_task(f"{sim_9189_device.name}", timeout=0.8)

with pytest.raises(AttributeError):
watchdog_task.nonexistent_property = "foo" # type: ignore[attr-defined]
watchdog_task.nonexistent_property = "foo" # type: ignore[attr-defined]


def test___watchdog_expiration_states___set_nonexistent_property___raises_exception(
Expand All @@ -132,4 +132,4 @@ def test___watchdog_expiration_states___set_nonexistent_property___raises_except
with pytest.raises(AttributeError):
watchdog_task.expiration_states[
sim_9263_device.ao_physical_chans[0].name
].nonexistent_property = "foo" # type: ignore[attr-defined]
].nonexistent_property = "foo" # type: ignore[attr-defined]

0 comments on commit a7f0811

Please sign in to comment.