Skip to content

Commit 439839c

Browse files
committed
Add CANCoder tests
1 parent 2ea3009 commit 439839c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/test_sensors.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import pytest
2+
3+
import ctre.sensors
4+
5+
6+
def test_cancoder():
7+
enc = ctre.sensors.CANCoder(0)
8+
enc.getPosition()
9+
10+
11+
def test_deprecated_import():
12+
with pytest.warns(FutureWarning, match="moved"):
13+
from ctre import CANCoder
14+
15+
assert CANCoder is ctre.sensors.CANCoder

0 commit comments

Comments
 (0)