julee 0.1.3__py3-none-any.whl → 0.1.4__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.
@@ -61,7 +61,7 @@ def sample_documents() -> list[Document]:
61
61
  created_at=datetime(2024, 1, 1, 12, 0, 0, tzinfo=timezone.utc),
62
62
  updated_at=datetime(2024, 1, 1, 12, 0, 0, tzinfo=timezone.utc),
63
63
  additional_metadata={"type": "test"},
64
- content_string="test content",
64
+ content_bytes="test content",
65
65
  ),
66
66
  Document(
67
67
  document_id="doc-2",
@@ -73,7 +73,7 @@ def sample_documents() -> list[Document]:
73
73
  created_at=datetime(2024, 1, 2, 12, 0, 0, tzinfo=timezone.utc),
74
74
  updated_at=datetime(2024, 1, 2, 12, 0, 0, tzinfo=timezone.utc),
75
75
  additional_metadata={"type": "report"},
76
- content_string="pdf content",
76
+ content_bytes="pdf content",
77
77
  ),
78
78
  ]
79
79
 
@@ -203,7 +203,7 @@ class TestGetDocument:
203
203
  assert data["additional_metadata"] == doc.additional_metadata
204
204
 
205
205
  # Content should NOT be included in metadata endpoint
206
- assert data["content_string"] is None
206
+ assert data["content_bytes"] is None
207
207
  # Content field is excluded from JSON response
208
208
  assert "content" not in data
209
209
 
@@ -273,7 +273,7 @@ class TestGetDocumentContent:
273
273
  memory_repo: MemoryDocumentRepository,
274
274
  ) -> None:
275
275
  """Test content retrieval when document has no content."""
276
- # Create document with content_string first to pass validation
276
+ # Create document with content_bytes first to pass validation
277
277
  doc = Document(
278
278
  document_id="doc-no-content",
279
279
  original_filename="empty.txt",
@@ -282,7 +282,7 @@ class TestGetDocumentContent:
282
282
  content_multihash="empty_hash",
283
283
  status=DocumentStatus.CAPTURED,
284
284
  additional_metadata={"type": "empty"},
285
- content_string="temp",
285
+ content_bytes="temp",
286
286
  )
287
287
 
288
288
  # Save document normally, then manually remove content from storage
@@ -290,7 +290,7 @@ class TestGetDocumentContent:
290
290
  stored_doc = memory_repo.storage_dict[doc.document_id]
291
291
  # Remove content from the stored document
292
292
  memory_repo.storage_dict[doc.document_id] = stored_doc.model_copy(
293
- update={"content": None, "content_string": None}
293
+ update={"content": None, "content_bytes": None}
294
294
  )
295
295
 
296
296
  # Make request
@@ -37,7 +37,7 @@ Usage in conf.py::
37
37
 
38
38
  from sphinx.util import logging
39
39
 
40
- from .config import init_config, config_factory
40
+ from .config import config_factory, init_config
41
41
 
42
42
  logger = logging.getLogger(__name__)
43
43
 
@@ -45,19 +45,13 @@ logger = logging.getLogger(__name__)
45
45
  def setup(app):
46
46
  """Set up all HCD extensions for Sphinx."""
47
47
  # Register configuration value first
48
- app.add_config_value('sphinx_hcd', {}, 'env')
48
+ app.add_config_value("sphinx_hcd", {}, "env")
49
49
 
50
50
  # Initialize config when builder starts (after conf.py is loaded)
51
- app.connect('builder-inited', _init_config_handler, priority=0)
51
+ app.connect("builder-inited", _init_config_handler, priority=0)
52
52
 
53
53
  # Import and setup each extension module
54
- from . import stories
55
- from . import journeys
56
- from . import epics
57
- from . import apps
58
- from . import accelerators
59
- from . import integrations
60
- from . import personas
54
+ from . import accelerators, apps, epics, integrations, journeys, personas, stories
61
55
 
62
56
  # Call setup on each module
63
57
  stories.setup(app)