From: Paul Vinciguerra Date: Wed, 13 Feb 2019 15:44:52 +0000 (-0800) Subject: make test-doc: Clean up import errors. X-Git-Tag: v19.04-rc1~453 X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=commitdiff_plain;h=2cc29a5264d22185a97190eeb820a7ce4978eaf7 make test-doc: Clean up import errors. Mock additional 3rd party modules and replace wildcard imports that were confusing sphinx. Change-Id: Ia9e599901a2a3fad854d3631dd0991183ae6d715 Signed-off-by: Paul Vinciguerra --- diff --git a/test/doc/conf.py b/test/doc/conf.py index 98cd7ab306d..25cd65b9f1f 100644 --- a/test/doc/conf.py +++ b/test/doc/conf.py @@ -33,7 +33,12 @@ extensions = [ 'sphinx.ext.autodoc', ] autodoc_mock_imports = ['objgraph', + 'parameterized', + 'pexpect', + 'psutil', 'pympler', + 'scapy', + 'syslog_rfc5424_parser', 'vpp_papi'] # Add any paths that contain templates here, relative to this directory. diff --git a/test/ipfix.py b/test/ipfix.py index 97b559e083b..e1c41b708d7 100644 --- a/test/ipfix.py +++ b/test/ipfix.py @@ -1,7 +1,9 @@ #!/usr/bin/env python # IPFIX support for Scapy (RFC7011) -from scapy.all import * +from scapy.all import bind_layers, FieldLenField, IntField, Packet, \ + PacketListField, ShortEnumField, ShortField, StrLenField +from scapy.layers.inet import UDP # IPFIX Information Elements http://www.iana.org/assignments/ipfix/ipfix.xhtml