make test-doc: Clean up import errors. 71/17571/2
authorPaul Vinciguerra <pvinci@vinciconsulting.com>
Wed, 13 Feb 2019 15:44:52 +0000 (07:44 -0800)
committerDamjan Marion <dmarion@me.com>
Wed, 20 Feb 2019 09:35:00 +0000 (09:35 +0000)
Mock additional 3rd party modules and replace wildcard imports that
were confusing sphinx.

Change-Id: Ia9e599901a2a3fad854d3631dd0991183ae6d715
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
test/doc/conf.py
test/ipfix.py

index 98cd7ab..25cd65b 100644 (file)
@@ -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.
index 97b559e..e1c41b7 100644 (file)
@@ -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