test_pbr.py 432 B

1234567891011121314151617181920
  1. import subprocess
  2. import pytest
  3. @pytest.mark.uses_network
  4. def test_pbr_integration(pbr_package, venv):
  5. """Ensure pbr packages install."""
  6. cmd = [
  7. 'python',
  8. '-m',
  9. 'pip',
  10. '-v',
  11. 'install',
  12. '--no-build-isolation',
  13. pbr_package,
  14. ]
  15. venv.run(cmd, stderr=subprocess.STDOUT)
  16. out = venv.run(["python", "-c", "import mypkg.hello"])
  17. assert "Hello world!" in out