Skip to content

Commit e17a2cd

Browse files
committed
coverage
1 parent eae32af commit e17a2cd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/surrogate_tests/test_causal_surrogate_assisted.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from causal_testing.specification.causal_dag import CausalDAG
44
from causal_testing.specification.causal_specification import CausalSpecification
55
from causal_testing.specification.scenario import Scenario
6-
from causal_testing.specification.variable import Input
6+
from causal_testing.specification.variable import Input, Output
77
from causal_testing.surrogate.causal_surrogate_assisted import SimulationResult, CausalSurrogateAssistedTestCase, Simulator
88
from causal_testing.surrogate.surrogate_search_algorithms import GeneticSearchAlgorithm
99
from causal_testing.testing.estimators import CubicSplineRegressionEstimator
@@ -58,7 +58,7 @@ def test_surrogate_model_generation(self):
5858
z = Input("Z", int)
5959
x = Input("X", int)
6060
m = Input("M", int)
61-
y = Input("Y", int)
61+
y = Output("Y", float)
6262
scenario = Scenario(variables={z, x, m, y})
6363
specification = CausalSpecification(scenario, causal_dag)
6464

@@ -77,7 +77,7 @@ def test_causal_surrogate_assisted_execution(self):
7777
z = Input("Z", int)
7878
x = Input("X", int)
7979
m = Input("M", int)
80-
y = Input("Y", int)
80+
y = Output("Y", float)
8181
scenario = Scenario(variables={z, x, m, y}, constraints={
8282
z <= 0, z >= 3,
8383
x <= 0, x >= 3,
@@ -109,7 +109,7 @@ def test_causal_surrogate_assisted_execution_failure(self):
109109
z = Input("Z", int)
110110
x = Input("X", int)
111111
m = Input("M", int)
112-
y = Input("Y", int)
112+
y = Output("Y", float)
113113
scenario = Scenario(variables={z, x, m, y}, constraints={
114114
z <= 0, z >= 3,
115115
x <= 0, x >= 3,
@@ -141,7 +141,7 @@ def test_causal_surrogate_assisted_execution_custom_aggregator(self):
141141
z = Input("Z", int)
142142
x = Input("X", int)
143143
m = Input("M", int)
144-
y = Input("Y", int)
144+
y = Output("Y", float)
145145
scenario = Scenario(variables={z, x, m, y}, constraints={
146146
z <= 0, z >= 3,
147147
x <= 0, x >= 3,
@@ -174,7 +174,7 @@ def test_causal_surrogate_assisted_execution_incorrect_search_config(self):
174174
z = Input("Z", int)
175175
x = Input("X", int)
176176
m = Input("M", int)
177-
y = Input("Y", int)
177+
y = Output("Y", float)
178178
scenario = Scenario(variables={z, x, m, y}, constraints={
179179
z <= 0, z >= 3,
180180
x <= 0, x >= 3,

0 commit comments

Comments
 (0)