This document covers the test suite for Netmiko.
cd ./netmiko/tests/etc
cp test_devices.yml.example test_devices.yml
cp responses.yml.example responses.yml
cp commands.yml.example commands.yml
Pick the device_types you want to test against; update:
For the device_types that you are testing against, update the following to match the test device(s):
cd ./netmiko/tests
Note, the test_device is the name of the device from test_devices.yml and responses.yml:
py.test -v test_netmiko_show.py --test_device cisco881
py.test -v test_netmiko_config.py --test_device cisco881
There are three tests available: