Skip to content

Commit

Permalink
updating unit test to fix failure with convolution knot
Browse files Browse the repository at this point in the history
  • Loading branch information
matroxel committed Oct 31, 2023
1 parent 041941e commit 1e50ba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_object_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def test_get_gsobject_components(self):
self.assertEqual(gs_obj.original.n, row[f"sersic_{component}"])
elif component == "knots":
# Check number of knots
if type==Convolution:
if type(gs_obj)==Convolution:
if type(gs_obj.obj_list[0].original)==RandomKnots:
self.assertEqual(gs_obj.obj_list[0].original.npoints, row["n_knots"])
else:
Expand Down

0 comments on commit 1e50ba3

Please sign in to comment.