Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Designate a single source of truth in JSON specs and autogenerate Python and JS files on build #61

Open
rtibbles opened this issue Aug 7, 2019 · 1 comment

Comments

@rtibbles
Copy link
Member

rtibbles commented Aug 7, 2019

The ground work for doing this has now been laid, updates are needed to accommodate the pre-existing constants and also generate JS code for them.

@ivanistheone
Copy link
Contributor

Yeah would be good to have a single source of truth.

For now I have just added some basic tests to check at least the keys match (assuming well documented in choices):
https://github.com/learningequality/le-utils/blob/master/tests/test_presets.py#L10-L14

note this function should be called test_file_format_preset_keys_are_synced not
test_file_format_extensions_are_synced

@rtibbles rtibbles changed the title Designate a single source of truth in Python code and autogenerate json files on build Designate a single source of truth in JSON specs and autogenerate Python and JS files on build Dec 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants