Skip to content

Commit

Permalink
Add CANCoder tests
Browse files Browse the repository at this point in the history
  • Loading branch information
auscompgeek committed Feb 18, 2023
1 parent 2ea3009 commit 439839c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/test_sensors.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import pytest

import ctre.sensors


def test_cancoder():
enc = ctre.sensors.CANCoder(0)
enc.getPosition()


def test_deprecated_import():
with pytest.warns(FutureWarning, match="moved"):
from ctre import CANCoder

assert CANCoder is ctre.sensors.CANCoder

0 comments on commit 439839c

Please sign in to comment.