Page MenuHomeSoftware Heritage

docker/tests: rework and improve fixture usage in conftest.py, and use compose v2 if available
ClosedPublic

Authored by douardda on Aug 9 2022, 5:03 PM.

Details

Summary

namely:

  • use testinfra's host to run commands instead of subprocess mostly for the sake of consistency.
  • simplify docker_compose fixture usage a bit

    make it yield the docker_host on which a check_compose_output lambda has been added; this allows users of the docker_compose fixture to use it directly to run compose commands in addition to usual commands without having to explicitly use the compose_cmd fixture.

Diff Detail

Repository
rDENV Development environment
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

This revision is now accepted and ready to land.Aug 9 2022, 5:05 PM