mirror of
https://github.com/velocitatem/PHANTOM.git
synced 2026-05-31 16:43:36 +00:00
chore: fixing tests with seed determinism
This commit is contained in:
@@ -6,6 +6,7 @@ from procesing.steps import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
def test_compute_demand(pipeline_context):
|
def test_compute_demand(pipeline_context):
|
||||||
|
random.seed(42) # deterministic test
|
||||||
step = ComputeDemandStep(context=pipeline_context)
|
step = ComputeDemandStep(context=pipeline_context)
|
||||||
|
|
||||||
# Test with normal interaction data
|
# Test with normal interaction data
|
||||||
@@ -26,6 +27,7 @@ def test_compute_demand(pipeline_context):
|
|||||||
|
|
||||||
|
|
||||||
def test_compute_demand_skewed(pipeline_context):
|
def test_compute_demand_skewed(pipeline_context):
|
||||||
|
random.seed(42) # deterministic test
|
||||||
step = ComputeDemandStep(context=pipeline_context)
|
step = ComputeDemandStep(context=pipeline_context)
|
||||||
|
|
||||||
# Test with normal interaction data
|
# Test with normal interaction data
|
||||||
|
|||||||
Reference in New Issue
Block a user