File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 66They serve rather as 'smoke tests', for if anything fails completely.
77"""
88
9+ import os
10+
911import numpy as np
1012from numpy .testing import assert_equal
1113
1719
1820pd = safe_import ('pandas' )
1921
20- from fooof .tests .settings import TEST_DATA_PATH
22+ from fooof .tests .settings import TEST_DATA_PATH , TEST_REPORTS_PATH
2123from fooof .tests .tutils import default_group_params , plot_test
2224
2325from fooof .objs .group import *
@@ -212,6 +214,13 @@ def test_fg_print(tfg):
212214 tfg .print_results ()
213215 assert True
214216
217+ def test_save_model_report (tfg ):
218+
219+ file_name = 'test_group_model_report'
220+ tfg .save_model_report (0 , file_name , TEST_REPORTS_PATH )
221+
222+ assert os .path .exists (os .path .join (TEST_REPORTS_PATH , file_name + '.pdf' ))
223+
215224def test_get_results (tfg ):
216225 """Check get results method."""
217226
You can’t perform that action at this time.
0 commit comments