def test_populate_measures(self): # BuildingSync v1.0.0 has 222 enums self.assertEqual(Measure.objects.count(), 222) # if we run it again, it shouldn't add anything new Measure.populate_measures(self.org.id) self.assertEqual(Measure.objects.count(), 222)
def setUp(self): self.user = User.objects.create_superuser('*****@*****.**', '*****@*****.**', 'test_pass') self.org, _, _ = create_organization(self.user) Measure.populate_measures(self.org.id)
def test_populate_measures(self): self.assertEqual(Measure.objects.count(), 222) # if we run it again, it shouldn't add anything new Measure.populate_measures(self.org.id) self.assertEqual(Measure.objects.count(), 222)
def setUp(self): self.org = Organization.objects.create() Measure.populate_measures(self.org.id)