test_cli.py 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # -*- coding: utf-8 -*-
  2. """ tests.test_cli
  3. Integration tests for conda-content-trust/conda_content_trust/cli.py.
  4. Run the tests this way:
  5. pytest tests/test_cli.py
  6. """
  7. import subprocess
  8. import conda_content_trust.cli
  9. def test_cli_basics():
  10. assert not subprocess.call(['conda-content-trust', '-V'])
  11. assert not subprocess.call(['conda-content-trust', '--version'])
  12. assert not subprocess.call(['conda-content-trust', '--help'])
  13. def test_that_all_calls_complete():
  14. assert not subprocess.call([
  15. 'conda-content-trust', 'verify-metadata',
  16. 'tests/testdata/1.root.json', 'tests/testdata/2.root.json'])
  17. assert not subprocess.call([
  18. 'conda-content-trust', 'verify-metadata',
  19. 'tests/testdata/1.root.json', 'tests/testdata/key_mgr.json'])
  20. # def test_gpg_key_fingerprint():
  21. # raise NotImplementedError()
  22. # def test_():
  23. # raise NotImplementedError()
  24. # def test_():
  25. # raise NotImplementedError()
  26. # def test_():
  27. # raise NotImplementedError()
  28. # def test_():
  29. # raise NotImplementedError()
  30. # def test_():
  31. # raise NotImplementedError()
  32. # def test_():
  33. # raise NotImplementedError()
  34. # def test_():
  35. # raise NotImplementedError()