Skip to content

Commit

Permalink
refactor vex._util.io.replace_stdin imports
Browse files Browse the repository at this point in the history
  • Loading branch information
TheVinhLuong102 committed Jul 3, 2023
1 parent 72e6305 commit 821f3e8
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tests/IQ/Gen2/Brain/Battery/battery_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import unittest

from vex import Brain
from ..io_utils import replace_stdin
from vex_util.io import replace_stdin


class TestBrainBattery(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/IQ/Gen2/Brain/Inertial/inertial_sensor_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from vex import DEGREES, VelocityUnits
from vex._common_enums.axis import XAXIS, YAXIS, ZAXIS
from vex._common_enums.orientation import PITCH, ROLL, YAW
from ..io_utils import replace_stdin
from vex_util.io import replace_stdin


class TestInertialSensor(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/IQ/Gen2/Brain/Timer/timer_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import unittest

from vex import Brain, SECONDS
from ..io_utils import replace_stdin
from vex_util.io import replace_stdin


class TestBrainTimer(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/IQ/Gen2/Color-Sensor/color_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import unittest

from vex import ColorSensor, ColorHue, Ports
from ..io_utils import replace_stdin
from vex_util.io import replace_stdin


class TestColorSensor(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/IQ/Gen2/Distance-Sensor/distance_sensor_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import unittest

from vex import Distance, ObjectSizeType, Ports, MM
from ..io_utils import replace_stdin
from vex_util.io import replace_stdin


class TestDistanceSensor(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/IQ/Gen2/DriveTrain/drivetrain_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from vex import DriveTrain
from vex import Motor, Ports, DEGREES, PERCENT, FORWARD, REVERSE, MM, LEFT, CurrentUnits
from .io_utils import replace_stdin
from vex._util.io import replace_stdin


class TestDriveTrain(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/IQ/Gen2/Gyro-Sensor/gyro_sensor_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import unittest

from vex import Gyro, GyroCalibrationType, DEGREES, Ports
from ..io_utils import replace_stdin
from vex._util.io import replace_stdin


class TestGyroSensor(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion tests/IQ/Gen2/Optical-Sensor/optical_sensor_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
LedStateType, GestureType, ColorHue,
PERCENT,
)
from ..io_utils import replace_stdin
from vex._util.io import replace_stdin


def callback_func():
Expand Down

0 comments on commit 821f3e8

Please sign in to comment.