Skip to content

Commit

Permalink
Merge pull request #449 from HEPData/bump-hepdata-validator
Browse files Browse the repository at this point in the history
Bump hepdata-validator version to 0.3.2 and update test
  • Loading branch information
GraemeWatt committed Dec 1, 2021
2 parents 85cd519 + 9dbaf6f commit 710d035
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hepdata/version.py
Expand Up @@ -28,4 +28,4 @@
and parsed by ``setup.py``.
"""

__version__ = "0.9.4dev20211130"
__version__ = "0.9.4dev20211201"
2 changes: 1 addition & 1 deletion requirements.txt
Expand Up @@ -14,7 +14,7 @@ Flask-Login==0.3.2
gevent==1.4.0
gunicorn==19.5.0
hepdata-converter-ws-client==0.2.2
hepdata-validator==0.3.1
hepdata-validator==0.3.2
invenio-access==1.4.2 # Indirect (needed by invenio-admin)
invenio-accounts==1.4.6
invenio-admin==1.3.0
Expand Down
2 changes: 1 addition & 1 deletion tests/submission_test.py
Expand Up @@ -274,7 +274,7 @@ def test_old_submission_yaml(app, admin_idx):
))
assert(errors['submission.yaml'][1]['level'] == 'error')
assert(errors['submission.yaml'][1]['message'].startswith(
"Invalid value (in GeV) for cmenergies: '1.383-1.481'"
"Invalid value (in GeV) for cmenergies: '1.383-1.481 GeV'"
))

# Use old schema - should now work
Expand Down
2 changes: 1 addition & 1 deletion tests/test_data/test_v0_submission/submission.yaml
Expand Up @@ -17,6 +17,6 @@ keywords:
- name: phrases
values: [Exclusive, Polarization, Photoproduction]
- name: cmenergies
values: [1.383-1.481]
values: [1.383-1.481 GeV]
name: Table 1
table_doi: 10.17182/hepdata.21754.v1/t1

0 comments on commit 710d035

Please sign in to comment.