mirror of
https://github.com/ivre/masscanned.git
synced 2025-10-01 22:28:20 +00:00
Tests: clean Python code, add linting to CI
This commit is contained in:
parent
f397198d75
commit
70eae9bc0c
4 changed files with 636 additions and 243 deletions
862
test/src/all.py
862
test/src/all.py
File diff suppressed because it is too large
Load diff
|
@ -16,5 +16,5 @@
|
|||
|
||||
IPV4_ADDR = "192.0.0.1"
|
||||
IPV6_ADDR = "2001:41d0::ab32:bdb8"
|
||||
MAC_ADDR = "52:1c:4e:c2:a4:1f"
|
||||
MAC_ADDR = "52:1c:4e:c2:a4:1f"
|
||||
OUTDIR = "test/res/"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue