From ddd6a3b1d48d395be6627aa20d624bf1b390dde9 Mon Sep 17 00:00:00 2001 From: Kaisa Kuivalahti Date: Thu, 19 Dec 2024 15:59:23 +0200 Subject: [PATCH] EKIRJASTO-131 Fix auth doc test --- .gitignore | 2 +- tests/api/test_authenticator.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index e4cdf44f1..5ab1f2460 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,7 @@ # Editors .vscode/ .idea/ -.venv_311 + # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] diff --git a/tests/api/test_authenticator.py b/tests/api/test_authenticator.py index f1553f066..8bfc533a4 100644 --- a/tests/api/test_authenticator.py +++ b/tests/api/test_authenticator.py @@ -1180,6 +1180,7 @@ def annotate_authentication_document(library, doc, url_for): reset_link, profile, loans, + selected_books, license, logo, privacy_policy, @@ -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"]