Skip to content

Commit 61d1ff9

Browse files
Fix lint
1 parent b08c906 commit 61d1ff9

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/python_testing/TC_SC_4_3.py

+12-12
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def verify_t_value(self, t_value):
113113
else:
114114
return False, f"Bit 0 is not clear. T value ({t_value})"
115115
except ValueError:
116-
return False, "T value ({t_value}) is not a valid decimal number."
116+
return False, f"T value ({t_value}) is not a valid decimal number."
117117

118118
@staticmethod
119119
def contains_ipv6_address(addresses):
@@ -128,7 +128,7 @@ def contains_ipv6_address(addresses):
128128

129129
@async_test_body
130130
async def test_TC_SC_4_3(self):
131-
print(f"\n"*10)
131+
print("\n"*10)
132132

133133
supports_icd = None
134134
supports_lit = None
@@ -181,7 +181,7 @@ async def test_TC_SC_4_3(self):
181181

182182
# ICD TXT KEY
183183
if supports_lit:
184-
logging.info(f"supports_lit is true, verify the ICD key IS present in the TXT record, and it has the value of 0 or 1 (ASCII).")
184+
logging.info("supports_lit is true, verify the ICD key IS present in the TXT record, and it has the value of 0 or 1 (ASCII).")
185185

186186
# Verify the ICD key IS present
187187
asserts.assert_in('ICD', operational.txt_record, "ICD key is NOT present in the TXT record.")
@@ -190,7 +190,7 @@ async def test_TC_SC_4_3(self):
190190
icd_value = int(operational.txt_record['ICD'])
191191
asserts.assert_true(icd_value == 0 or icd_value == 1, "ICD value is different than 0 or 1 (ASCII).")
192192
else:
193-
logging.info(f"supports_lit is false, verify that the ICD key is NOT present in the TXT record.")
193+
logging.info("supports_lit is false, verify that the ICD key is NOT present in the TXT record.")
194194
asserts.assert_not_in('ICD', operational.txt_record, "ICD key is present in the TXT record.")
195195

196196
# SII TXT KEY
@@ -207,34 +207,34 @@ async def test_TC_SC_4_3(self):
207207
sit_mode = False
208208

209209
if sit_mode:
210-
logging.info(f"sit_mode is True, verify the SII key IS present.")
210+
logging.info("sit_mode is True, verify the SII key IS present.")
211211
asserts.assert_in('SII', operational.txt_record, "SII key is NOT present in the TXT record.")
212212

213-
logging.info(f"Verify SII value is a decimal with no leading zeros and is less than or equal to 3600000 (1h in ms).")
213+
logging.info("Verify SII value is a decimal with no leading zeros and is less than or equal to 3600000 (1h in ms).")
214214
sii_value = operational.txt_record['SII']
215215
result, message = self.verify_decimal_value(sii_value, self.ONE_HOUR_IN_MS)
216216
asserts.assert_true(result, message)
217217

218218
# SAI TXT KEY
219219
if supports_icd:
220-
logging.info(f"supports_icd is True, verify the SAI key IS present.")
220+
logging.info("supports_icd is True, verify the SAI key IS present.")
221221
asserts.assert_in('SAI', operational.txt_record, "SAI key is NOT present in the TXT record.")
222222

223-
logging.info(f"Verify SAI value is a decimal with no leading zeros and is less than or equal to 3600000 (1h in ms).")
223+
logging.info("Verify SAI value is a decimal with no leading zeros and is less than or equal to 3600000 (1h in ms).")
224224
sai_value = operational.txt_record['SAI']
225225
result, message = self.verify_decimal_value(sai_value, self.ONE_HOUR_IN_MS)
226226
asserts.assert_true(result, message)
227227

228228
# SAT TXT KEY
229229
if 'SAT' in operational.txt_record:
230230
logging.info(
231-
f"SAT key is present in TXT record, verify that it is a decimal value with no leading zeros and is less than or equal to 65535.")
231+
"SAT key is present in TXT record, verify that it is a decimal value with no leading zeros and is less than or equal to 65535.")
232232
sat_value = operational.txt_record['SAT']
233233
result, message = self.verify_decimal_value(sat_value, self.MAX_SAT_VALUE)
234234
asserts.assert_true(result, message)
235235

236236
if supports_icd:
237-
logging.info(f"supports_icd is True, verify the SAT value is equal to active_mode_threshold.")
237+
logging.info("supports_icd is True, verify the SAT value is equal to active_mode_threshold.")
238238
asserts.assert_equal(int(sat_value), active_mode_threshold_ms)
239239

240240
# # T TXT KEY
@@ -245,7 +245,7 @@ async def test_TC_SC_4_3(self):
245245
# asserts.assert_true(result, message)
246246

247247
# AAAA
248-
logging.info(f"Verify the AAAA record contains at least one IPv6 address")
248+
logging.info("Verify the AAAA record contains at least one IPv6 address")
249249
result, message = self.contains_ipv6_address(operational.addresses)
250250
asserts.assert_true(result, message)
251251

@@ -255,7 +255,7 @@ async def test_TC_SC_4_3(self):
255255
op_sub_type = self.get_operational_subtype()
256256
asserts.assert_in(op_sub_type, service_types, f"No PTR record with DNS-SD instance name '{op_sub_type}'")
257257

258-
print(f"\n"*10)
258+
print("\n"*10)
259259

260260

261261
if __name__ == "__main__":

0 commit comments

Comments
 (0)