aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2019-02-13 07:44:52 -0800
committerDamjan Marion <dmarion@me.com>2019-02-20 09:35:00 +0000
commit2cc29a5264d22185a97190eeb820a7ce4978eaf7 (patch)
tree1374f55570f02ce7143cb2de2151d2a3419c024d /test
parent8a140616a5bab477817e7ed59afe6b01bd3d2f3a (diff)
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 <pvinci@vinciconsulting.com>
Diffstat (limited to 'test')
-rw-r--r--test/doc/conf.py5
-rw-r--r--test/ipfix.py4
2 files changed, 8 insertions, 1 deletions
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