Coverage for biobb_ml/test/unitests/test_regression/test_random_forest_regressor.py: 94%
17 statements
« prev ^ index » next coverage.py v7.6.1, created at 2024-10-03 14:57 +0000
« prev ^ index » next coverage.py v7.6.1, created at 2024-10-03 14:57 +0000
1from biobb_common.tools import test_fixtures as fx
2from biobb_ml.regression.random_forest_regressor import random_forest_regressor
3import platform
6class TestRandomForestRegressor():
7 def setup_class(self):
8 fx.test_setup(self, 'random_forest_regressor')
10 def teardown_class(self):
11 fx.test_teardown(self)
12 pass
14 def test_random_forest_regressor(self):
15 random_forest_regressor(properties=self.properties, **self.paths)
16 assert fx.not_empty(self.paths['output_model_path'])
17 if platform.system() == 'Darwin':
18 assert fx.equal(self.paths['output_model_path'], self.paths['ref_output_model_path'])
19 assert fx.not_empty(self.paths['output_test_table_path'])
20 assert fx.equal(self.paths['output_test_table_path'], self.paths['ref_output_test_table_path'])
21 assert fx.not_empty(self.paths['output_plot_path'])
22 # assert fx.equal(self.paths['output_plot_path'], self.paths['ref_output_plot_path'])