Esempio n. 1
0
    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)
Esempio n. 2
0
 def setUp(self):
     self.user = User.objects.create_superuser('*****@*****.**',
                                               '*****@*****.**',
                                               'test_pass')
     self.org, _, _ = create_organization(self.user)
     Measure.populate_measures(self.org.id)
Esempio n. 3
0
    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)
Esempio n. 4
0
 def setUp(self):
     self.org = Organization.objects.create()
     Measure.populate_measures(self.org.id)