@@ -33,7 +33,7 @@ def test_generate_concrete_test_cases(self):
33
33
abstract = AbstractCausalTestCase (
34
34
scenario = scenario ,
35
35
intervention_constraints = {scenario .treatment_variables [self .X1 .name ].z3 > self .X1 .z3 },
36
- treatment_variables = { self .X1 } ,
36
+ treatment_variables = self .X1 ,
37
37
expected_causal_effect = {self .Y : Positive ()},
38
38
effect_modifiers = None ,
39
39
)
@@ -47,7 +47,7 @@ def test_str(self):
47
47
abstract = AbstractCausalTestCase (
48
48
scenario = scenario ,
49
49
intervention_constraints = {scenario .treatment_variables [self .X1 .name ].z3 > self .X1 .z3 },
50
- treatment_variables = { self .X1 } ,
50
+ treatment_variables = self .X1 ,
51
51
expected_causal_effect = {self .Y : Positive ()},
52
52
effect_modifiers = None ,
53
53
)
@@ -61,7 +61,7 @@ def test_datapath(self):
61
61
abstract = AbstractCausalTestCase (
62
62
scenario = scenario ,
63
63
intervention_constraints = {scenario .treatment_variables [self .X1 .name ].z3 > self .X1 .z3 },
64
- treatment_variables = { self .X1 } ,
64
+ treatment_variables = self .X1 ,
65
65
expected_causal_effect = {self .Y : Positive ()},
66
66
effect_modifiers = None ,
67
67
)
@@ -73,7 +73,7 @@ def test_generate_concrete_test_cases_with_constraints(self):
73
73
abstract = AbstractCausalTestCase (
74
74
scenario = scenario ,
75
75
intervention_constraints = {scenario .treatment_variables [self .X1 .name ].z3 > self .X1 .z3 },
76
- treatment_variables = { self .X1 } ,
76
+ treatment_variables = self .X1 ,
77
77
expected_causal_effect = {self .Y : Positive ()},
78
78
effect_modifiers = None ,
79
79
)
@@ -87,7 +87,7 @@ def test_generate_concrete_test_cases_with_effect_modifiers(self):
87
87
abstract = AbstractCausalTestCase (
88
88
scenario = scenario ,
89
89
intervention_constraints = {scenario .treatment_variables [self .X1 .name ].z3 > self .X1 .z3 },
90
- treatment_variables = { self .X1 } ,
90
+ treatment_variables = self .X1 ,
91
91
expected_causal_effect = {self .Y : Positive ()},
92
92
effect_modifiers = {self .X2 },
93
93
)
@@ -101,7 +101,7 @@ def test_generate_concrete_test_cases_rct(self):
101
101
abstract = AbstractCausalTestCase (
102
102
scenario = scenario ,
103
103
intervention_constraints = {scenario .treatment_variables [self .X1 .name ].z3 > self .X1 .z3 },
104
- treatment_variables = { self .X1 } ,
104
+ treatment_variables = self .X1 ,
105
105
expected_causal_effect = {self .Y : Positive ()},
106
106
effect_modifiers = None ,
107
107
)
@@ -116,7 +116,7 @@ def test_infeasible_constraints(self):
116
116
abstract = AbstractCausalTestCase (
117
117
scenario = scenario ,
118
118
intervention_constraints = {scenario .treatment_variables [self .X1 .name ].z3 > self .X1 .z3 },
119
- treatment_variables = { self .X1 } ,
119
+ treatment_variables = self .X1 ,
120
120
expected_causal_effect = {self .Y : Positive ()},
121
121
effect_modifiers = None ,
122
122
)
@@ -135,7 +135,7 @@ def test_feasible_constraints(self):
135
135
abstract = AbstractCausalTestCase (
136
136
scenario = scenario ,
137
137
intervention_constraints = {scenario .treatment_variables [self .X1 .name ].z3 > self .X1 .z3 },
138
- treatment_variables = { self .X1 } ,
138
+ treatment_variables = self .X1 ,
139
139
expected_causal_effect = {self .Y : Positive ()},
140
140
effect_modifiers = None ,
141
141
)
0 commit comments