Skip to content

Commit 6e1ef29

Browse files
committed
fix: removed bad test
1 parent 469a94a commit 6e1ef29

2 files changed

Lines changed: 2 additions & 10 deletions

File tree

tests/test_parallel_transformer.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,6 @@ def test_map_with_context(self):
111111
result = list(transformer([1, 2, 3], context))
112112
assert result == [3, 6, 9]
113113

114-
def test_context_aware_complex_operation(self):
115-
"""Test complex context-aware operations with shared state."""
116-
context = ParallelContextManager({"multiplier": 3, "stats": {"total": 0, "count": 0}})
117-
118-
transformer = createParallelTransformer(int, max_workers=2, chunk_size=2).map(update_stats)
119-
data = [1, 2, 3, 4, 5]
120-
result = list(transformer(data, context))
121-
122114
def test_multiple_context_values_modification(self):
123115
"""Test modifying multiple context values safely."""
124116
from laygo.context import ParallelContextManager

tests/test_pipeline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,5 +478,5 @@ def context_modifier_b(chunk: list[int], ctx: PipelineContext) -> list[int]:
478478
assert result["branch_b"] == [3, 6, 9]
479479

480480
# Context values should reflect the actual chunk sizes processed
481-
assert pipeline.ctx.get("branch_a_processed") == 3
482-
assert pipeline.ctx.get("branch_b_processed") == 3
481+
assert pipeline.context_manager.get("branch_a_processed") == 3
482+
assert pipeline.context_manager.get("branch_b_processed") == 3

0 commit comments

Comments
 (0)