Skip to content

Commit

Permalink
some passing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
molpopgen committed Aug 18, 2023
1 parent 8daf0eb commit 4b846c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_genetic_value_to_fitness.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def testPickle(self):

p = pickle.dumps(self.g, -1)
up = pickle.loads(p)
self.assertEqual(up.VS, self.VS)
self.assertEqual(up.optimum, self.opt)
self.assertEqual(up.optima[0].VS, self.VS)
self.assertEqual(up.optima[0].optimum, self.opt)

def test_mapping(self):
self.assertEqual(self.g.maps_to_fitness, False)
Expand All @@ -67,7 +67,7 @@ def setUp(self):
Opt(when=0, optimum=0.0, VS=1.0),
Opt(when=100, optimum=1.0, VS=1.0),
]
self.g = fwdpy11.GSSmo(self.optima)
self.g = fwdpy11.GaussianStabilizingSelection.single_trait(self.optima)

def testPickle(self):
import pickle
Expand Down

0 comments on commit 4b846c7

Please sign in to comment.