File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11Release History
22===============
33
4+ 0.2.17 Apr 13, 2026
5+ -------------------
6+ - Added library enum constants (KOLIBRI, COMMUNITY) for identifying channel library membership
7+
8+
490.1.33 Oct 5, 2021
510-------------------
611 - Added new labelslookup.json constants
Original file line number Diff line number Diff line change 1+ // -*- coding: utf-8 -*-
2+ // Generated by scripts/generate_from_specs.py
3+ // Library
4+
5+ export default {
6+ COMMUNITY : "COMMUNITY" ,
7+ KOLIBRI : "KOLIBRI" ,
8+ } ;
Original file line number Diff line number Diff line change 1+ # -*- coding: utf-8 -*-
2+ # Generated by scripts/generate_from_specs.py
3+ from __future__ import unicode_literals
4+
5+ # Library
6+
7+ COMMUNITY = "COMMUNITY"
8+ KOLIBRI = "KOLIBRI"
9+
10+ choices = (
11+ (COMMUNITY , "Community" ),
12+ (KOLIBRI , "Kolibri" ),
13+ )
14+
15+ LIBRARYLIST = [
16+ COMMUNITY ,
17+ KOLIBRI ,
18+ ]
Original file line number Diff line number Diff line change 1+ [
2+ " COMMUNITY" ,
3+ " KOLIBRI"
4+ ]
Original file line number Diff line number Diff line change 1+ # -*- coding: utf-8 -*-
2+ from __future__ import unicode_literals
3+
4+ from le_utils .constants import library
5+
6+
7+ def test_library_constants_exist ():
8+ assert library .KOLIBRI == "KOLIBRI"
9+ assert library .COMMUNITY == "COMMUNITY"
10+
11+
12+ def test_library_choices ():
13+ choices_dict = dict (library .choices )
14+ assert library .KOLIBRI in choices_dict
15+ assert library .COMMUNITY in choices_dict
16+ assert choices_dict [library .KOLIBRI ] == "Kolibri"
17+ assert choices_dict [library .COMMUNITY ] == "Community"
18+
19+
20+ def test_LIBRARYLIST_exists ():
21+ assert library .LIBRARYLIST , "LIBRARYLIST did not generate properly"
You can’t perform that action at this time.
0 commit comments