Skip to content

Commit b14acbf

Browse files
committed
revert setProfile for testing purposes
1 parent f7503d6 commit b14acbf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_contribution.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def setUp(self):
3737
def testSetProfile(self):
3838
fc = self.fitcontribution
3939
profile = self.profile
40-
fc.set_profile(self.profile)
40+
fc.setProfile(self.profile)
4141
# verify standard profile setup
4242
self.assertTrue(fc.profile is profile)
4343
self.assertTrue(fc.x.par is profile.xpar)
@@ -47,11 +47,11 @@ def testSetProfile(self):
4747
self.assertTrue(fc._reseq is None)
4848
# check type checking
4949
fc1 = FitContribution("test1")
50-
self.assertRaises(TypeError, fc1.set_profile, "invalid")
50+
self.assertRaises(TypeError, fc1.setProfile, "invalid")
5151
# check if residual equation is set up when possible
5252
fc2 = FitContribution("test2")
5353
fc2.set_equation("A * x")
54-
fc2.set_profile(profile)
54+
fc2.setProfile(profile)
5555
self.assertFalse(fc2._reseq is None)
5656
return
5757

0 commit comments

Comments
 (0)