Skip to content

Commit e74899c

Browse files
committed
Fix and duplicate test, one writable and the other not.
1 parent 12096e4 commit e74899c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/test_pdo.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,13 @@ def test_pdo_save_skip_readonly(self):
6969
# Saving only happens with a defined COB ID and for specified parameters
7070
self.node.tpdo[1].cob_id = self.node.tpdo[1].predefined_cob_id
7171
self.node.tpdo[1].trans_type = 1
72-
self.node.tpdo[1].inhibit_time = 10
73-
self.node.tpdo[1].com_record[2].od.access_type = "r"
7472
self.node.tpdo[1].save()
7573

74+
self.node.tpdo[2].cob_id = self.node.tpdo[2].predefined_cob_id
75+
self.node.tpdo[2].trans_type = 1
76+
self.node.tpdo[2].com_record[2].od.access_type = "r"
77+
self.node.tpdo[2].save()
78+
7679
def test_pdo_export(self):
7780
try:
7881
import canmatrix

0 commit comments

Comments
 (0)