Skip to content

Commit

Permalink
Merge pull request #68 from datacite/issue-datacite-1442
Browse files Browse the repository at this point in the history
Issue datacite 1442
  • Loading branch information
jrhoads committed Feb 3, 2022
2 parents 441fa40 + 29dd1b5 commit 7983f52
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 36 deletions.
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ pytest-sugar = "*"

[packages]
flask = "*"
pyoai = "*"
requests = "*"
python-dateutil = "*"
lxml = "*"
factory-boy = "*"
json_log_formatter = "*"
sentry-sdk = {extras = ["flask"],version = "*"}
python-dotenv = "*"
pyoai = {ref = "6f54ef677313c907479e605051bcfd2f1950dc13", git = "https://github.com/datacite/pyoai.git"}

[requires]
python_version = "3.8"
53 changes: 18 additions & 35 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions tests/unit/test_oai_server.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import oaipmh.server


def test_decode_resumption_token_raises_no_error():
EXAMPLE_RESUMPTION = "metadataPrefix%3Ddatacite%26set%3DSND.BOLIN%26paging_cursor%3DMTU4NTU2NDkxMTAwMCwxMC4xNzA0My9zd2VydXMtMjAxNC1kMTNj%26cursor%3D1"
try:
oaipmh.server.decodeResumptionToken(EXAMPLE_RESUMPTION)
except Exception as exc:
assert False, f"DecodingResumptionToken raised an exception {exc}"


0 comments on commit 7983f52

Please sign in to comment.