ds-caselaw-marklogic-api-client 27.0.0__py3-none-any.whl → 27.0.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ds-caselaw-marklogic-api-client might be problematic. Click here for more details.
- caselawclient/factories.py +3 -5
- {ds_caselaw_marklogic_api_client-27.0.0.dist-info → ds_caselaw_marklogic_api_client-27.0.1.dist-info}/METADATA +1 -1
- {ds_caselaw_marklogic_api_client-27.0.0.dist-info → ds_caselaw_marklogic_api_client-27.0.1.dist-info}/RECORD +5 -5
- {ds_caselaw_marklogic_api_client-27.0.0.dist-info → ds_caselaw_marklogic_api_client-27.0.1.dist-info}/LICENSE.md +0 -0
- {ds_caselaw_marklogic_api_client-27.0.0.dist-info → ds_caselaw_marklogic_api_client-27.0.1.dist-info}/WHEEL +0 -0
caselawclient/factories.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import datetime
|
|
2
2
|
from typing import Any, Optional, cast
|
|
3
|
-
from unittest.mock import Mock
|
|
3
|
+
from unittest.mock import Mock
|
|
4
4
|
|
|
5
5
|
from typing_extensions import TypeAlias
|
|
6
6
|
|
|
@@ -63,10 +63,8 @@ class DocumentFactory:
|
|
|
63
63
|
api_client = Mock(spec=MarklogicApiClient)
|
|
64
64
|
api_client.get_judgment_xml_bytestring.return_value = DEFAULT_DOCUMENT_BODY_XML.encode(encoding="utf-8")
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
document = cls.target_class(uri, api_client=api_client)
|
|
69
|
-
|
|
66
|
+
document = cls.target_class(uri, api_client=api_client)
|
|
67
|
+
document.content_as_html = Mock(return_value=html) # type: ignore[method-assign]
|
|
70
68
|
document.body = kwargs.pop("body") if "body" in kwargs else DocumentBodyFactory.build()
|
|
71
69
|
|
|
72
70
|
for param_name, default_value in cls.PARAMS_MAP.items():
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ds-caselaw-marklogic-api-client
|
|
3
|
-
Version: 27.0.
|
|
3
|
+
Version: 27.0.1
|
|
4
4
|
Summary: An API client for interacting with the underlying data in Find Caselaw.
|
|
5
5
|
Home-page: https://github.com/nationalarchives/ds-caselaw-custom-api-client
|
|
6
6
|
Keywords: national archives,caselaw
|
|
@@ -4,7 +4,7 @@ caselawclient/client_helpers/__init__.py,sha256=fyDNKCdrTb2N0Ks23YDhmvlXKfLTHnYQ
|
|
|
4
4
|
caselawclient/client_helpers/search_helpers.py,sha256=R99HyRLeYHgsw2L3DOidEqlKLLvs6Tga5rKTuWQViig,1525
|
|
5
5
|
caselawclient/content_hash.py,sha256=0cPC4OoABq0SC2wYFX9-24DodNigeOqksDxgxQH_hUA,2221
|
|
6
6
|
caselawclient/errors.py,sha256=tV0vs3wYSd331BzmfuRiZV6GAdsd91rtN65ymRaSx3s,3164
|
|
7
|
-
caselawclient/factories.py,sha256=
|
|
7
|
+
caselawclient/factories.py,sha256=WkymzhT2Hh9RwJUh2OjjgI110Td4eDzWKFdNVATImCQ,5197
|
|
8
8
|
caselawclient/models/__init__.py,sha256=kd23EUpvaC7aLHdgk8farqKAQEx3lf7RvNT2jEatvlg,68
|
|
9
9
|
caselawclient/models/documents/__init__.py,sha256=EwfkYMr5HnmdtxijKwU6AV27Y4JAmobdNHL9Cp--bBs,16624
|
|
10
10
|
caselawclient/models/documents/body.py,sha256=0o8qL7oJ40VikNAgqS41phQyB8Jtfz93eK1KyR4k3F0,4791
|
|
@@ -65,7 +65,7 @@ caselawclient/xquery/validate_document.xqy,sha256=PgaDcnqCRJPIVqfmWsNlXmCLNKd21q
|
|
|
65
65
|
caselawclient/xquery/xslt.xqy,sha256=w57wNijH3dkwHkpKeAxqjlghVflQwo8cq6jS_sm-erM,199
|
|
66
66
|
caselawclient/xquery/xslt_transform.xqy,sha256=smyFFxqmtkuOzBd2l7uw6K2oAsYctudrP8omdv_XNAM,2463
|
|
67
67
|
caselawclient/xquery_type_dicts.py,sha256=YOrXbEYJU84S-YwergCI12OL5Wrn_wpqMcqWpsQrKek,5590
|
|
68
|
-
ds_caselaw_marklogic_api_client-27.0.
|
|
69
|
-
ds_caselaw_marklogic_api_client-27.0.
|
|
70
|
-
ds_caselaw_marklogic_api_client-27.0.
|
|
71
|
-
ds_caselaw_marklogic_api_client-27.0.
|
|
68
|
+
ds_caselaw_marklogic_api_client-27.0.1.dist-info/LICENSE.md,sha256=fGMzyyLuQW-IAXUeDSCrRdsYW536aEWThdbpCjo6ZKg,1108
|
|
69
|
+
ds_caselaw_marklogic_api_client-27.0.1.dist-info/METADATA,sha256=gN0HbwNyMc1ZTW2zYZYjA2q9E7-qkqrjDKQaDvqbBB0,4189
|
|
70
|
+
ds_caselaw_marklogic_api_client-27.0.1.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
|
|
71
|
+
ds_caselaw_marklogic_api_client-27.0.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|