Skip to content

Commit 7983f52

Browse files
authored
Merge pull request #68 from datacite/issue-datacite-1442
Issue datacite 1442
2 parents 441fa40 + 29dd1b5 commit 7983f52

3 files changed

Lines changed: 30 additions & 36 deletions

File tree

Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ pytest-sugar = "*"
1515

1616
[packages]
1717
flask = "*"
18-
pyoai = "*"
1918
requests = "*"
2019
python-dateutil = "*"
2120
lxml = "*"
2221
factory-boy = "*"
2322
json_log_formatter = "*"
2423
sentry-sdk = {extras = ["flask"],version = "*"}
2524
python-dotenv = "*"
25+
pyoai = {ref = "6f54ef677313c907479e605051bcfd2f1950dc13", git = "https://github.com/datacite/pyoai.git"}
2626

2727
[requires]
2828
python_version = "3.8"

Pipfile.lock

Lines changed: 18 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/unit/test_oai_server.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import oaipmh.server
2+
3+
4+
def test_decode_resumption_token_raises_no_error():
5+
EXAMPLE_RESUMPTION = "metadataPrefix%3Ddatacite%26set%3DSND.BOLIN%26paging_cursor%3DMTU4NTU2NDkxMTAwMCwxMC4xNzA0My9zd2VydXMtMjAxNC1kMTNj%26cursor%3D1"
6+
try:
7+
oaipmh.server.decodeResumptionToken(EXAMPLE_RESUMPTION)
8+
except Exception as exc:
9+
assert False, f"DecodingResumptionToken raised an exception {exc}"
10+
11+

0 commit comments

Comments
 (0)