rapid7 / nexpose-client-python

DEPRECATED : Rapid7 Nexpose API client library written in Python
https://www.rapid7.com/
BSD 3-Clause "New" or "Revised" License
25 stars 20 forks source link

Convert run_demo.py into tests and documentation #33

Open gschneider-r7 opened 6 years ago

gschneider-r7 commented 6 years ago

The run_demo.py script is useful for testing things out with a real console, but it would be more valuable to have replay data to use for testing. We should also add documentation (sphinx or github wiki) explaining how to use the library features since the demo script is where most people are going to look for "how to" info currently.

Use something like https://github.com/kevin1024/vcrpy to record and replay (sanitized) requests and responses, and add test coverage that can be run by py.test.