예제 #1
0
 def setUp(self):
     mtrack_init_demo()
     ProductReport.objects.all().delete()
     self.backend, c = Backend.objects.get_or_create(name='test')
     self.facility = HealthFacility.objects.all()[0]
     self.contact = Contact.objects.all()[0]
     hp = HealthProvider.objects.get(contact_ptr=self.contact)
     hp.facility = self.facility
     hp.save()
     self.connection = Connection.objects.get(contact=self.contact)
 def handle(self, *args, **options):
     mtrack_loader.mtrack_init_demo()