Skip to content

Commit

Permalink
Update metadata class we are using.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangreen committed Jun 13, 2024
1 parent 9057a30 commit 031d890
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/manager/api/test_odl2.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

import pytest
from freezegun import freeze_time
from webpub_manifest_parser.core.ast import PresentationMetadata
from webpub_manifest_parser.odl.ast import ODLPublication
from webpub_manifest_parser.odl.semantic import (
ODL_PUBLICATION_MUST_CONTAIN_EITHER_LICENSES_OR_OA_ACQUISITION_LINK_ERROR,
)
from webpub_manifest_parser.opds2.ast import OPDS2PublicationMetadata

from palace.manager.api.circulation_exceptions import (
HoldsNotPermitted,
Expand Down Expand Up @@ -224,7 +224,9 @@ def test_import(
huck_finn_semantic_error = (
ODL_PUBLICATION_MUST_CONTAIN_EITHER_LICENSES_OR_OA_ACQUISITION_LINK_ERROR(
node=ODLPublication(
metadata=PresentationMetadata(identifier="urn:isbn:9781234567897")
metadata=OPDS2PublicationMetadata(
identifier="urn:isbn:9781234567897"
)
),
node_property=None,
)
Expand Down

0 comments on commit 031d890

Please sign in to comment.