@jwalgran - well, sort of. There's actually a ReputationMetric model being
created. In this case the number of fields changed, so the rep changed - no
way around that unless we just want to assert that ```reputation_count >
reloaded_user_rep```


On Wed, Jul 24, 2013 at 2:33 PM, Justin Walgran <notifications@github.com>wrote:

> In opentreemap/api/tests.py:
>
> > @@ -640,7 +640,7 @@ def test_create_plot_with_tree(self):
> >          self.assertEqual(plot_count + 1, Plot.objects.count())
> >          # Assert that reputation went up
> >          reloaded_user_rep = User.objects.get(pk=self.user.pk).reputation
> > -        self.assertEqual(reputation_count + 10, reloaded_user_rep)
>
> @ahinz <https://github.com/ahinz> Can we move these "magic" rep into a
> model so that tests will not break if we make a global change to the number
> of points that are rewarded for a specific action?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/azavea/OTM2/pull/87/files#r5379771>
> .
>



-- 
Adam Hinz
Software Engineer, Azavea
hinz.adam@gmail.com | c: 608-445-8391 | Twitter: @ahinz