Orchestrata Ultimate › Tests › Reference › orchestrator › test_artifact_store
Tests reference — tests/orchestrator/test_artifact_store.py
Module of tests/orchestrator, split out because the directory page would be too large.
Prose pending.
tests/orchestrator/test_artifact_store.py
source · 36 tests · 460 lines
Tests for orchestrator.artifact_store — ArtifactStore, PipelineArtifact, ArtifactType.
Covers: orchestrator.artifact_store
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestArtifactType |
24 | Enum value tests for ArtifactType — 21 values. |
| method | TestArtifactType.test_all_values_are_lowercase_snake |
27 | |
| method | TestArtifactType.test_all_values_are_unique |
32 | |
| method | TestArtifactType.test_string_construction |
36 | |
| method | TestArtifactType.test_string_construction_case_sensitive |
42 | |
| method | TestArtifactType.test_invalid_value_raises |
46 | |
| method | TestArtifactType.test_membership |
50 | |
| class | TestPipelineArtifact |
58 | Tests for PipelineArtifact dataclass. |
| method | TestPipelineArtifact.test_creation_with_minimal_fields |
61 | |
| method | TestPipelineArtifact.test_creation_with_all_fields |
75 | |
| method | TestPipelineArtifact.test_timestamp_defaults_to_utc |
94 | |
| method | TestPipelineArtifact.test_file_path_defaults_to_none |
103 | |
| method | TestPipelineArtifact.test_thread_and_session_default_empty |
111 | |
| class | TestArtifactStore |
124 | Tests for ArtifactStore — thread-safe collection. |
| method | TestArtifactStore.test_add_single_artifact |
145 | |
| method | TestArtifactStore.test_add_multiple_artifacts |
151 | |
| method | TestArtifactStore.test_by_stage_filters_correctly |
157 | |
| method | TestArtifactStore.test_by_stage_empty_for_unknown |
166 | |
| method | TestArtifactStore.test_by_type_filters_correctly |
169 | |
| method | TestArtifactStore.test_by_type_empty_for_unknown |
178 | |
| method | TestArtifactStore.test_by_thread_filters_correctly |
182 | |
| method | TestArtifactStore.test_by_thread_empty_for_unknown |
191 | |
| method | TestArtifactStore.test_all_returns_copy_not_reference |
194 | |
| method | TestArtifactStore.test_count_reflects_additions |
200 | |
| method | TestArtifactStore.test_thread_safety |
207 | |
| method | TestArtifactStore.test_to_json_serializes |
232 | |
| method | TestArtifactStore.test_to_json_empty_store |
243 | |
| method | TestArtifactStore.test_artifacts_preserve_insertion_order |
247 | |
| method | TestArtifactStore.test_multiple_artifact_types_per_stage |
254 | Same stage can produce multiple artifact types. |
| class | TestArtifactStorePersistenceAndRanking |
273 | Tests for JSONL persistence, trace fields, and ranked digest. |
| method | TestArtifactStorePersistenceAndRanking.test_replay_loads_artifacts_from_jsonl |
276 | |
| method | TestArtifactStorePersistenceAndRanking.test_persistence_appends_each_add |
301 | |
| method | TestArtifactStorePersistenceAndRanking.test_add_content_convenience_method |
320 | |
| method | TestArtifactStorePersistenceAndRanking.test_by_spec_filters |
338 | |
| method | TestArtifactStorePersistenceAndRanking.test_by_requirement_filters |
362 | |
| method | TestArtifactStorePersistenceAndRanking.test_render_digest_returns_empty_message_for_empty_store |
385 | |
| method | TestArtifactStorePersistenceAndRanking.test_render_digest_sorts_by_recency |
389 | |
| method | TestArtifactStorePersistenceAndRanking.test_render_digest_ranks_by_query_relevance |
410 | |
| method | TestArtifactStorePersistenceAndRanking.test_len_matches_count |
426 | |
| method | TestArtifactStorePersistenceAndRanking.test_artifact_to_dict_from_dict_round_trip |
437 |