Skip to content

Commit

Permalink
EKIRJASTO-131 Fix auth doc test
Browse files Browse the repository at this point in the history
  • Loading branch information
natlibfi-kaisa committed Dec 19, 2024
1 parent 5dea53d commit ddd6a3b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Editors
.vscode/
.idea/
.venv_311

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
5 changes: 5 additions & 0 deletions tests/api/test_authenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1180,6 +1180,7 @@ def annotate_authentication_document(library, doc, url_for):
reset_link,
profile,
loans,
selected_books,
license,
logo,
privacy_policy,
Expand All @@ -1200,6 +1201,10 @@ def annotate_authentication_document(library, doc, url_for):
assert "http://opds-spec.org/shelf" == loans["rel"]
assert OPDSFeed.ACQUISITION_FEED_TYPE == loans["type"]

assert "/selected_books" in selected_books["href"]
assert "http://opds-spec.org/shelf/selected_books" == selected_books["rel"]
assert OPDSFeed.ACQUISITION_FEED_TYPE == selected_books["type"]

assert "/patrons/me" in profile["href"]
assert ProfileController.LINK_RELATION == profile["rel"]
assert ProfileController.MEDIA_TYPE == profile["type"]
Expand Down

0 comments on commit ddd6a3b

Please sign in to comment.