zivid / zivid-python

Official Python package for Zivid 3D cameras
BSD 3-Clause "New" or "Revised" License
40 stars 14 forks source link

Start testing 2D capture API in the CI #220

Closed eskaur closed 1 year ago

eskaur commented 1 year ago

Previously all unit-tests that depend on 2D capture were marked with @pytest.mark.physical_camera because at some point in the past 2D captures did not work with file cameras. Such tests are not run in the CI because the CI does not have access to real cameras. The intended procedure was that developers would run pytest with -m physical_camera before making a PR. However this is a vulnerable system because:

In the latest SDK release it is not a problem to do 2D captures with file cameras. Thus we can close this pitfall by making all the 2D capture API tests use a file camera instead, so that they are run in the CI on all supported platforms.