Skip to content

Commit 5b48bdd

Browse files
generatedunixname537391475639613meta-codesync[bot]
authored andcommitted
fbcode/frl/ae/aepsych/tests (#831)
Summary: Pull Request resolved: #831 Pull Request resolved: #830 Reviewed By: JasonKChow Differential Revision: D91871238 fbshipit-source-id: a3ded6acda0a7f393b4ba9c9c8835c95a9f2a60e
1 parent 5977250 commit 5b48bdd

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

tests/test_datafetcher.py

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,22 @@
2828
class DataFetcherTestCase(unittest.TestCase):
2929
def default_config(
3030
self,
31-
outcome_names=["outcome"],
32-
outcome_types=["binary"],
33-
par_data={
34-
"par1": ["continuous", 0, 1, False],
35-
"par2": ["continuous", 0, 1, False],
36-
},
31+
outcome_names=None,
32+
outcome_types=None,
33+
par_data=None,
3734
model_name="GPClassificationModel",
3835
num_stim=1,
3936
):
37+
if outcome_names is None:
38+
outcome_names = ["outcome"]
39+
if outcome_types is None:
40+
outcome_types = ["binary"]
41+
if par_data is None:
42+
par_data = {
43+
"par1": ["continuous", 0, 1, False],
44+
"par2": ["continuous", 0, 1, False],
45+
}
46+
4047
def print_par_data(data):
4148
par_string = ""
4249
for k, v in data.items():

0 commit comments

Comments
 (0)