learningequality / le-utils

Utilities and constants shared across Kolibri, Ricecooker, and Kolibri Studio
MIT License
2 stars 31 forks source link

Update tests to guarantee that no metadata labels across different label types have the same identifier #96

Closed rtibbles closed 2 years ago

rtibbles commented 2 years ago

Currently there is no guarantee that the labels defined in https://github.com/learningequality/le-utils/blob/master/spec/labels.json#L1 will not collide in their identifier names (although the pure ids should not collide except by a very low probability UUID type collision).

We should write a simple test that ensures that: a) None of the labels defined there in collide with each other b) All of the labels are defined as UPPER_SNAKE_CASE.