Basic functionality can be tested for using Python's unittest module.
test_pump_base.pycontains tests for interacting with the serial connectiontest_pump.pycontains tests for the higher-level command wrappers
The tests can be run as follows
python <PATH_TO_TEST> <PORT>
- <PATH_TO_TEST> is the path to the test you want to run
- <PORT> is the local pump's serial port (eg. "COM3" or "/dev/ttyUSB0", etc.)
Note
test_pump will briefly run the pump, so make sure it is primed and connected to a solvent reservior.
Note
Tests for NextGenPump's reset, zero_seal, and set_leak_mode irreversibly modify the pump's configuration, and are disabled by default.