pqc/test/test_license.py

29 lines
571 B
Python
Raw Permalink Normal View History

"""
2019-02-18 12:04:59 +00:00
Checks that a LICENSE or LICENSE.txt file is present for every
implementation of the specified scheme.
"""
import os
import pytest
2019-02-18 12:04:59 +00:00
import helpers
import pqclean
2019-02-18 12:04:59 +00:00
@pytest.mark.parametrize(
'implementation',
pqclean.Scheme.all_implementations(),
ids=str,
)
@helpers.filtered_test
def test_license(implementation):
p1 = os.path.join(implementation.path(), 'LICENSE')
p2 = os.path.join(implementation.path(), 'LICENSE.txt')
assert(os.path.isfile(p1) or os.path.isfile(p2))
if __name__ == '__main__':
import sys
pytest.main(sys.argv)