Skip to content

Commit c559719

Browse files
committed
fixed python coding style violation part 2
1 parent 1fc7f9f commit c559719

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/component/system/test_device_properties.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -117,19 +117,19 @@ def test___module___get_chassis___shared_interpreter(device: Device):
117117
def test___ext_cal_last_date_and_time___no_errors(any_x_series_device: Device) -> None:
118118
last_date_and_time = any_x_series_device.ext_cal_last_date_and_time
119119

120-
assert last_date_and_time != None
120+
assert last_date_and_time is not None
121121

122122

123123
def test___self_cal_last_date_and_time___no_errors(any_x_series_device: Device) -> None:
124124
last_date_and_time = any_x_series_device.self_cal_last_date_and_time
125125

126-
assert last_date_and_time != None
126+
assert last_date_and_time is not None
127127

128128

129129
def test___device_supports_cal___no_errors(any_x_series_device: Device) -> None:
130130
is_cal_supported = any_x_series_device.device_supports_cal
131131

132-
assert is_cal_supported == True
132+
assert is_cal_supported is True
133133

134134

135135
def test___cal_acc_connection_count___no_errors(any_x_series_device: Device) -> None:
@@ -154,7 +154,9 @@ def test___cal_dev_temp___no_errors(any_x_series_device: Device) -> None:
154154
assert 0.0 != temperature
155155

156156

157-
def test___cal_recommended_acc_connection_count_limit___no_errors(any_x_series_device: Device) -> None:
157+
def test___cal_recommended_acc_connection_count_limit___no_errors(
158+
any_x_series_device: Device,
159+
) -> None:
158160
try:
159161
acc_connection_count_limit = any_x_series_device.cal_recommended_acc_connection_count_limit
160162
print(f"current_acc_connection_count_limit: {acc_connection_count_limit}")

0 commit comments

Comments
 (0)