Skip to content

Commit c2fe531

Browse files
committed
fix black lint
1 parent 7edf312 commit c2fe531

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

tests/switchmap_/server/db/ingest/update/test_device.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,10 +1271,10 @@ def test_l1interface(self):
12711271
# time.time() and inserted into the database
12721272
ts_idle=0,
12731273
ifin_ucast_pkts=0,
1274-
ifout_ucast_pkts=0,
1275-
ifin_errors=0,
1276-
ifin_discards=0,
1277-
cdpcachedeviceid=(
1274+
ifout_ucast_pkts=0,
1275+
ifin_errors=0,
1276+
ifin_discards=0,
1277+
cdpcachedeviceid=(
12781278
None
12791279
if row.cdpcachedeviceid is None
12801280
else row.cdpcachedeviceid.decode()

tests/switchmap_/server/db/table/test_l1interface.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -300,18 +300,18 @@ def _convert(row):
300300
ifdescr=row.ifdescr,
301301
ifadminstatus=row.ifadminstatus,
302302
ifoperstatus=row.ifoperstatus,
303-
ifin_ucast_pkts=getattr(row, 'ifin_ucast_pkts', 0),
304-
ifout_ucast_pkts=getattr(row, 'ifout_ucast_pkts', 0),
305-
ifin_errors=getattr(row, 'ifin_errors', 0),
306-
ifin_discards=getattr(row, 'ifin_discards', 0),
303+
ifin_ucast_pkts=getattr(row, "ifin_ucast_pkts", 0),
304+
ifout_ucast_pkts=getattr(row, "ifout_ucast_pkts", 0),
305+
ifin_errors=getattr(row, "ifin_errors", 0),
306+
ifin_discards=getattr(row, "ifin_discards", 0),
307307
ts_idle=row.ts_idle,
308308
cdpcachedeviceid=row.cdpcachedeviceid,
309309
cdpcachedeviceport=row.cdpcachedeviceport,
310310
cdpcacheplatform=row.cdpcacheplatform,
311311
lldpremportdesc=row.lldpremsysdesc,
312312
lldpremsyscapenabled=row.lldpremsyscapenabled,
313313
lldpremsysdesc=row.lldpremportdesc,
314-
lldpremsysname=getattr(row, 'lldpremsysname', ''),
314+
lldpremsysname=getattr(row, "lldpremsysname", ""),
315315
enabled=row.enabled,
316316
)
317317
return result

0 commit comments

Comments
 (0)