Beispiel #1
0
    def testBuildTemplateApps(self, request_mock):
        image_path = os.path.join('corehq', 'apps', 'hqwebapp', 'static',
                                  'hqwebapp', 'images', 'commcare-hq-logo.png')
        with open(image_path, 'rb') as f:
            request_mock.return_value = MockRequest(status=200, data=f.read())

            # Tests that these apps successfully build
            for slug in ['agriculture', 'health', 'wash']:
                self.assertIsNotNone(
                    load_app_from_slug(self.domain, 'username', slug))
Beispiel #2
0
 def testBuildTemplateApps(self, mock):
     # Tests that these apps successfully build
     for slug in ['agriculture', 'health', 'wash']:
         load_app_from_slug(self.domain, 'username', slug)
Beispiel #3
0
def load_appcues_template_app(domain, username, app_slug):
    from corehq.apps.app_manager.views.apps import load_app_from_slug
    load_app_from_slug(domain, username, app_slug)