Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
rhayes777 committed Jul 22, 2024
1 parent 2375966 commit 8a9b6a7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test_autofit/database/test_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,12 @@ def test_model_with_parameterless_component():
def test_instance_in_collection():
collection = af.Collection(gaussian=af.Gaussian())
assert list(collection.items()) == [("gaussian", af.Gaussian())]


def test_samples_summary_model():
fit = af.db.Fit()
model = af.Model(af.Gaussian)
fit["samples_summary"] = af.Samples(model=model, sample_list=[])
fit.model = model

assert fit["samples_summary"].model.cls == af.Gaussian

0 comments on commit 8a9b6a7

Please sign in to comment.