Skip to content

Commit 9291b51

Browse files
committed
Add test for no model case
1 parent 8d1fa8c commit 9291b51

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/stats/test_stats_utilities.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,20 @@ def test_save_fit_param():
253253
plt_cfg={'nbins' : 50, 'stacked' : True},
254254
fit_dir=f'{Data.fit_dir}/save_fit/parametric')
255255
#----------------------------------
256+
def test_save_fit_nomodel():
257+
'''
258+
Tests saving fit without model
259+
'''
260+
pdf = _get_pdf(kind='simple')
261+
dat = pdf.create_sampler(n=1000)
262+
263+
sut.save_fit(
264+
data =dat,
265+
model =None,
266+
res =None,
267+
plt_cfg={'nbins' : 50, 'stacked' : True},
268+
fit_dir=f'{Data.fit_dir}/save_fit/parametric')
269+
#----------------------------------
256270
def test_save_fit_nonparam():
257271
'''
258272
Tests saving fit without parameters

0 commit comments

Comments
 (0)