Skip to content

Commit

Permalink
tests: modify test_old_submission_yaml
Browse files Browse the repository at this point in the history
* cmenergies 1.383-1.481 passes after fix HEPData/hepdata-validator#42.
* Change test data to an invalid value of '1.383-1.481 GeV' instead.
  • Loading branch information
GraemeWatt committed Dec 1, 2021
1 parent 961faa8 commit 9dbaf6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/submission_test.py
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 9dbaf6f

Please sign in to comment.