This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Running: $ DJANGO_SETTINGS_MODULE="oeplatform.settings" python -m pytest | |
- Results in: | |
============================================================================== test session starts ============================================================================== | |
platform linux -- Python 3.7.0, pytest-3.8.0, py-1.6.0, pluggy-0.7.1 | |
rootdir: /home/local/RL-INSTITUT/alexis.michaltsis/projects/oep/oeplatform, inifile: | |
plugins: remotedata-0.3.0, openfiles-0.3.0, doctestplus-0.1.3, arraydiff-0.2 | |
collected 0 items / 6 errors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Running: $ python manage.py test --no-input | |
- Gives errors: | |
Creating test database for alias 'default'... | |
/home/local/RL-INSTITUT/alexis.michaltsis/anaconda3/lib/python3.7/site-packages/django/db/models/fields/__init__.py:1451: RuntimeWarning: DateTimeField TableRevision.date received a naive datetime (2019-10-07 13:56:50.976353) while time zone support is active. | |
RuntimeWarning) | |
/home/local/RL-INSTITUT/alexis.michaltsis/anaconda3/lib/python3.7/site-packages/django/db/models/fields/__init__.py:1451: RuntimeWarning: DateTimeField TableRevision.date received a naive datetime (2019-10-07 13:56:51.002412) while time zone support is active. | |
RuntimeWarning) | |
System check identified no issues (0 silenced). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
in the comments |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
JSON schemas used to validate the OEP metadata input as json file. | |
Usage: | |
import jsonschema | |
jsonschema.validate(metadata_json, METADATA_v1_3_SCHEMA) | |
jsonschema.validate(metadata_json, METADATA_v1_4_SCHEMA) | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Tiny customElement wrapper that enables scalable web component architecture. | |
* Define custom elements with a configuration object that separates markup from css and javascript. | |
* Uses a slotted light DOM (no shadow DOM) to allow for powerful component extension, | |
* composition and easier styling with external stylesheets and global css variables. | |
* Exports a component class that can be imported and explicitly used to be picked up by module bundlers. | |
* See comments for examples and GNU license below. | |
*/ | |
export function defineComponent(name, config) { |