Skip to content

Commit d4937dd

Browse files
committed
Formatting
1 parent 3a0284e commit d4937dd

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

subprojects/robotpy-wpilib/tests/test_opmode_robot.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,9 @@ def __init__(self, robot):
479479
assert {opt.name for opt in options} == {"DefaultAutoMode", "DefaultTeleMode"}
480480

481481

482-
def test_add_op_mode_injects_robot_and_user_controls_by_parameter_name(tmp_path, monkeypatch):
482+
def test_add_op_mode_injects_robot_and_user_controls_by_parameter_name(
483+
tmp_path, monkeypatch
484+
):
483485
pkg = tmp_path / "controlsbot"
484486
pkg.mkdir()
485487
(pkg / "__init__.py").write_text("")
@@ -519,7 +521,9 @@ def publishOpModes(self):
519521
assert opmode.user_controls is robot._user_controls
520522

521523

522-
def test_add_op_mode_rejects_unsupported_constructor_parameter_name(tmp_path, monkeypatch):
524+
def test_add_op_mode_rejects_unsupported_constructor_parameter_name(
525+
tmp_path, monkeypatch
526+
):
523527
pkg = tmp_path / "badcontrolsbot"
524528
pkg.mkdir()
525529
(pkg / "__init__.py").write_text("")
@@ -543,7 +547,9 @@ def __init__(self):
543547
module = importlib.import_module("badcontrolsbot.robot")
544548
robot = module.Robot()
545549

546-
with pytest.raises(TypeError, match="unsupported constructor parameter name 'controls'"):
550+
with pytest.raises(
551+
TypeError, match="unsupported constructor parameter name 'controls'"
552+
):
547553
robot.addOpMode(module.BadMode, RobotMode.TELEOPERATED, "BadMode")
548554

549555

0 commit comments

Comments
 (0)