Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

29 wiersze
571 B

  1. """
  2. Checks that a LICENSE or LICENSE.txt file is present for every
  3. implementation of the specified scheme.
  4. """
  5. import os
  6. import pytest
  7. import helpers
  8. import pqclean
  9. @pytest.mark.parametrize(
  10. 'implementation',
  11. pqclean.Scheme.all_implementations(),
  12. ids=str,
  13. )
  14. @helpers.filtered_test
  15. def test_license(implementation):
  16. p1 = os.path.join(implementation.path(), 'LICENSE')
  17. p2 = os.path.join(implementation.path(), 'LICENSE.txt')
  18. assert(os.path.isfile(p1) or os.path.isfile(p2))
  19. if __name__ == '__main__':
  20. import sys
  21. pytest.main(sys.argv)