@@ -120,51 +120,51 @@ def test_download_params_via_mavftp() -> None:
120
120
121
121
def test_auto_detect_serial () -> None :
122
122
fc = FlightController (reboot_time = 7 )
123
- serial_ports = fc ._FlightController__auto_detect_serial () # noqa: SLF001 pylint: disable=protected-access
123
+ serial_ports = fc ._FlightController__auto_detect_serial () # pylint: disable=protected-access
124
124
assert isinstance (serial_ports , list )
125
125
126
126
127
127
def test_list_serial_ports () -> None :
128
- serial_ports = FlightController ._FlightController__list_serial_ports () # noqa: SLF001 pylint: disable=protected-access
128
+ serial_ports = FlightController ._FlightController__list_serial_ports () # pylint: disable=protected-access
129
129
assert isinstance (serial_ports , list )
130
130
131
131
132
132
def test_list_network_ports () -> None :
133
- network_ports = FlightController ._FlightController__list_network_ports () # noqa: SLF001 pylint: disable=protected-access
133
+ network_ports = FlightController ._FlightController__list_network_ports () # pylint: disable=protected-access
134
134
assert isinstance (network_ports , list )
135
135
assert "tcp:127.0.0.1:5760" in network_ports
136
136
137
137
138
138
def test_request_banner () -> None :
139
139
fc = FlightController (reboot_time = 7 )
140
140
fc .connect (device = "test" )
141
- fc ._FlightController__request_banner () # noqa: SLF001 pylint: disable=protected-access
141
+ fc ._FlightController__request_banner () # pylint: disable=protected-access
142
142
# Since we cannot verify in the mock environment, we will just ensure no exceptions are raised
143
143
144
144
145
145
def test_receive_banner_text () -> None :
146
146
fc = FlightController (reboot_time = 7 )
147
147
fc .connect (device = "test" )
148
- banner_text = fc ._FlightController__receive_banner_text () # noqa: SLF001 pylint: disable=protected-access
148
+ banner_text = fc ._FlightController__receive_banner_text () # pylint: disable=protected-access
149
149
assert isinstance (banner_text , list )
150
150
151
151
152
152
def test_request_message () -> None :
153
153
fc = FlightController (reboot_time = 7 )
154
154
fc .connect (device = "test" )
155
- fc ._FlightController__request_message (1 ) # noqa: SLF001 pylint: disable=protected-access
155
+ fc ._FlightController__request_message (1 ) # pylint: disable=protected-access
156
156
# Since we cannot verify in the mock environment, we will just ensure no exceptions are raised
157
157
158
158
159
159
def test_create_connection_with_retry () -> None :
160
160
fc = FlightController (reboot_time = 7 )
161
- result = fc ._FlightController__create_connection_with_retry (progress_callback = None , retries = 1 , timeout = 1 ) # noqa: SLF001 pylint: disable=protected-access
161
+ result = fc ._FlightController__create_connection_with_retry (progress_callback = None , retries = 1 , timeout = 1 ) # pylint: disable=protected-access
162
162
assert result == ""
163
163
164
164
165
165
def test_process_autopilot_version () -> None :
166
166
fc = FlightController (reboot_time = 7 )
167
167
fc .connect (device = "test" )
168
168
banner_msgs = ["ChibiOS: 123" , "ArduPilot" ]
169
- result = fc ._FlightController__process_autopilot_version (None , banner_msgs ) # noqa: SLF001 pylint: disable=protected-access
169
+ result = fc ._FlightController__process_autopilot_version (None , banner_msgs ) # pylint: disable=protected-access
170
170
assert isinstance (result , str )
0 commit comments