Skip to content

Commit

Permalink
Merge pull request #86 from learningequality/fix_licenses
Browse files Browse the repository at this point in the history
Fix critical licenses error.
  • Loading branch information
rtibbles authored Apr 21, 2021
2 parents b6433f4 + 4a49531 commit d51256c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion le_utils/constants/licenses.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
11 changes: 11 additions & 0 deletions tests/test_licenses.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d51256c

Please sign in to comment.