Reference implementations of PQC
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 

29 rindas
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)