From 4a49531617845d22a6af43448349058ee18119cf Mon Sep 17 00:00:00 2001 From: Richard Tibbles Date: Wed, 21 Apr 2021 12:54:00 -0700 Subject: [PATCH] Fix critical licenses error. --- le_utils/constants/licenses.py | 2 +- setup.py | 2 +- tests/test_licenses.py | 11 +++++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 tests/test_licenses.py diff --git a/le_utils/constants/licenses.py b/le_utils/constants/licenses.py index 2223c05..ba9fa07 100644 --- a/le_utils/constants/licenses.py +++ b/le_utils/constants/licenses.py @@ -48,7 +48,7 @@ class License( def generate_list(constantlist): for id, lang in constantlist.items(): - yield License(id=int(id), **lang) + yield License(id=int(id), description="", **lang) def _initialize_license_list(): diff --git a/setup.py b/setup.py index 47c4a5e..7472264 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ setup( name="le-utils", packages=find_packages(), - version="0.1.28", + version="0.1.29", description="LE-Utils contains shared constants used in Kolibri, Ricecooker, and Kolibri Studio.", long_description=long_description, long_description_content_type="text/markdown", diff --git a/tests/test_licenses.py b/tests/test_licenses.py new file mode 100644 index 0000000..11be2c8 --- /dev/null +++ b/tests/test_licenses.py @@ -0,0 +1,11 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from le_utils.constants import licenses + + +def test_licences(): + """ + Smoke test for licenses + """ + assert licenses