@@ -32,15 +32,15 @@ def tearDown(self):
3232
3333
3434 def test_get_datasests (self ):
35- """
36- Get empty list of datasets in project.
37- """
35+
36+ # Get empty list of datasets in project.
37+
3838 # get datasets
3939 datasets = DatasetClient (self .project .hid ).get_datasets ()
4040 self .assertEqual (datasets , [])
4141
4242 def test_prepare_data (self ):
43- """ Test _prepare_data method on numpy array data """
43+ # Test _prepare_data method on numpy array data
4444 dc = DatasetClient (self .project .hid )
4545 samples = 100
4646 columns = 10
@@ -56,7 +56,7 @@ def test_prepare_data(self):
5656 self .assertTrue ('attribute_10' in data .columns )
5757
5858 def test_get_dataset_for_wrong_hid (self ):
59- """ Get dataset for wrong hid should return None """
59+ # Get dataset for wrong hid should return None
6060 dc = DatasetClient (self .project .hid )
6161 dataset = dc .get_dataset ('some-wrong-hid' )
6262 self .assertTrue (dataset is None )
@@ -82,7 +82,6 @@ def test_add_dataset_for_training(self):
8282 self .assertTrue ('title' in str (my_dataset_2 ))
8383 self .assertTrue ('file' in str (my_dataset_2 ))
8484
85-
8685 def test_add_dataset_for_prediction (self ):
8786 # setup dataset client
8887 dc = DatasetClient (self .project .hid )
@@ -100,7 +99,6 @@ def test_add_dataset_for_prediction(self):
10099 self .assertEqual (my_dataset .hid , my_dataset_2 .hid )
101100 self .assertEqual (my_dataset .title , my_dataset_2 .title )
102101
103-
104102 def test_add_existing_dataset (self ):
105103 # setup dataset client
106104 dc = DatasetClient (self .project .hid )
@@ -119,14 +117,12 @@ def test_add_existing_dataset(self):
119117 datasets = dc .get_datasets ()
120118 self .assertEqual (len (datasets ), init_datasets_cnt + 1 )
121119
122-
123120 def test_prepare_data_two_sources (self ):
124121 dc = DatasetClient (self .project .hid )
125122 data_1 , data_hash_1 = dc ._prepare_data (self .X , self .y )
126123 data_2 , data_hash_2 = dc ._prepare_data (self .X , None )
127124 self .assertNotEqual (data_hash_1 , data_hash_2 )
128125
129-
130126 def test_prepare_data_two_sources_numpy (self ):
131127 dc = DatasetClient (self .project .hid )
132128 data_1 , data_hash_1 = dc ._prepare_data (np .array (self .X ), np .array (self .y ))
0 commit comments