Skip to content

Commit 3ff087f

Browse files
json_class setup
2 parents b03099a + 92edfe2 commit 3ff087f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/json_front_tests/test_json_class.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import os
44
from tests.test_helpers import create_temp_dir_if_non_existent, remove_temp_dir_if_existent
55
from causal_testing.json_front.json_class import JsonUtility
6+
from causal_testing.specification.variable import Input, Output, Meta
67

78

89
class TestJsonClass(unittest.TestCase):
@@ -24,15 +25,17 @@ def setUp(self) -> None:
2425
self.input_dict_list = [{"name": "test_input", "type": float, "distribution": "uniform"}]
2526
self.output_dict_list = [{"name": "test_output", "type": float}]
2627
self.meta_dict_list = [{"name": "test_meta", "type": float, "populate": "populate_num_lines_unit"}]
28+
self.json_class.set_variables(self.input_dict_list, self.output_dict_list, self.meta_dict_list)
2729

28-
def test_set_paths(self):
30+
def test_setting_paths(self):
2931
self.json_class.set_path(self.json_path, self.dag_path, self.data_path)
3032
self.assertEqual(self.json_class.json_path, Path(self.json_path))
3133
self.assertEqual(self.json_class.dag_path, Path(self.dag_path))
3234
self.assertEqual(self.json_class.data_path, Path(self.data_path))
3335

34-
def test_set_inputs:
36+
def test_set_inputs(self):
3537

38+
pass
3639

3740

3841
def tearDown(self) -> None:

0 commit comments

Comments
 (0)