Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 979 Bytes

CONTRIBUTING.md

File metadata and controls

32 lines (25 loc) · 979 Bytes

Project scope

In scope

  • support for Legato 100 & Legato 101 syringe pumps

Contributions welcome

  • check compatibility with other syringe pumps
  • alternative synchronous controller
  • more interesting examples of usage

Developer setup

poetry shell
poetry install --with dev

Tests

A suite of pytest tests is available in tests. These can be run in two modes:

  • Online: requires a Legato 100 syringe pump to be connected to the computer
  • Offline: uses mock responses collected during online tests

Further, a small set of tests is available to test the motion control functionality of the pump. These tests will move the plunger if a pump is connected. They are disabled by default and can be run with the --motion flag.

pytest
pytest --offline
pytest --motion

Note: we use pytest-cov for coverage reporting. The coverage uses a debugger mechanism, so in order to debug, you need to disable coverage with --no-cov.