hoverpy package¶
Submodules¶
hoverpy.testing module¶
Module contents¶
-
class
hoverpy.
HoverPy
(host='localhost', capture=False, proxyPort=8500, adminPort=8888, inMemory=False, modify=False, middleware='', dbpath='requests.db', simulation='', synthesize=False, metrics=False, dev=False, auth=False, cert='', certName='', certOrg='', dest=[], verbose=False, generateCACert=False, destination='', key='', tlsVerification=True)¶ -
addDelay
(urlPattern='', delay=0, httpMethod=None)¶ Adds delays. TBD.
-
capture
()¶ Switches hoverfly to capture mode.
-
config
()¶ Returns the hoverfly configuration json.
-
delays
(delays=[])¶ Gets / Sets the delays. TBD.
-
destination
(name='')¶ Gets / Sets the destination data. TBD.
-
metadata
(delete=False)¶ Gets the metadata. TBD.
-
middleware
()¶ Gets the middleware data. TBD.
-
mode
(mode=None)¶ Gets / Sets the mode.
If no mode is provided, then this method acts as a getter.
Keyword arguments: mode – this should either be ‘capture’ or ‘simulate’ (default None)
-
records
(data=None)¶ Gets / Sets records. TBD.
-
simulate
()¶ Switches hoverfly to simulate mode.
Please note simulate is the default mode.
-
simulation
(data=None)¶ Gets / Sets the simulation data.
If no data is passed in, then this method acts as a getter. if data is passed in, then this method acts as a setter.
Keyword arguments: data – the simulation data you wish to set (default None)
-
usage
()¶ Gets the usage data. TBD.
-
wipe
()¶ Wipe the bolt database.
Calling this after HoverPy has been instantiated is potentially dangerous. This function is mostly used internally for unit tests.
-
-
hoverpy.
capture
(func)¶
-
hoverpy.
quick_test
()¶
-
hoverpy.
simulate
(func)¶
-
hoverpy.
wipe
()¶