inveniosoftware / invenio-rdm-records

DataCite-based data model for InvenioRDM flavour.
https://invenio-rdm-records.readthedocs.io
MIT License
15 stars 81 forks source link

tests: fixture records with reference text and identifier #1720

Closed ptamarit closed 2 months ago

ptamarit commented 2 months ago

:heart: Thank you for your contribution!

Fixes https://github.com/zenodo/ops/issues/415

Description

The test in test_marcxml_serializer.py has an assertion on 999C5$x which make it look as if the reference identifier was serialized instead of the reference text. This is due to the fact that the fake test data did not follow the real format (with a reference text, an identifier and a scheme).

This pull request makes the test data for references match with the reality and modifies affected assertions.

Checklist

Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:

Third-party code

If you've added third-party code (copy/pasted or new dependencies), please reach out to an architect.

Reminder

By using GitHub, you have already agreed to the GitHub’s Terms of Service including that:

  1. You license your contribution under the same terms as the current repository’s license.
  2. You agree that you have the right to license your contribution under the current repository’s license.