Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 808 Bytes

TESTING.rst

File metadata and controls

22 lines (13 loc) · 808 Bytes

How to test the interface

Basic functionality can be tested for using Python's unittest module.

  • test_pump_base.py contains tests for interacting with the serial connection
  • test_pump.py contains 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.