Tests: clean Python code, add linting to CI

This commit is contained in:
Pierre Lalet 2021-12-09 12:08:19 +01:00
parent f397198d75
commit 70eae9bc0c
4 changed files with 636 additions and 243 deletions

View file

@ -28,7 +28,8 @@ from scapy.interfaces import resolve_iface
from scapy.layers.tuntap import TunTapInterface
from src.all import test_all
from src.conf import *
from src.conf import IPV4_ADDR, IPV6_ADDR, MAC_ADDR, OUTDIR
def setup_logs():
ch = logging.StreamHandler()
@ -39,6 +40,7 @@ def setup_logs():
log.addHandler(ch)
return log
LOG = setup_logs()
IFACE = "tap0"
conf.verb = 0