def setUp(self):
        super(ConfirmDeliveryTest, self).setUp()
        self.api = MockOpenLMISEndpoint("uri://mock/lmis/endpoint", username='******', password='******')

        openlmis_config = OpenLMISConfig()
        openlmis_config.enabled = True

        commtrack_config = CommtrackConfig.get(self.domain.commtrack_settings._id)
        commtrack_config.openlmis_config = openlmis_config
        commtrack_config.save()
Esempio n. 2
0
    def setUp(self):
        super(OpenLMISTestBase, self).setUp()
        self.api = MockOpenLMISEndpoint("uri://mock/lmis/endpoint", username="******", password="******")

        openlmis_config = OpenLMISConfig()
        openlmis_config.enabled = True

        commtrack_config = CommtrackConfig.for_domain(self.domain.name)
        commtrack_config.openlmis_config = openlmis_config
        commtrack_config.save()
Esempio n. 3
0
    def setUp(self):
        super(OpenLMISTestBase, self).setUp()
        self.api = MockOpenLMISEndpoint("uri://mock/lmis/endpoint",
                                        username='******',
                                        password='******')

        openlmis_config = OpenLMISConfig()
        openlmis_config.enabled = True

        commtrack_config = CommtrackConfig.for_domain(self.domain.name)
        commtrack_config.openlmis_config = openlmis_config
        commtrack_config.save()
Esempio n. 4
0
    def setUp(self):
        super(SignalsTest, self).setUp()
        self.datapath = os.path.join(os.path.dirname(__file__), 'data')
        self.spps.clear()

        self.createProgram()
        self.createProducts()

        openlmis_config = OpenLMISConfig()
        openlmis_config.enabled = True

        commtrack_config = CommtrackConfig.get(self.domain.commtrack_settings._id)
        commtrack_config.openlmis_config = openlmis_config
        commtrack_config.save()

        for p in self.products:
            self.spps[p.code] = make_supply_point_product(self.sp, p._id)