コード例 #1
0
    def _get_grcode_view_response(self):
        factory = RequestFactory()
        request = factory.get('/')
        request.user = self.user
        response = qrcode(request, self.user.username, self.xform.id_string)

        return response
コード例 #2
0
ファイル: test_form_enter_data.py プロジェクト: iMMAP/onadata
 def _get_grcode_view_response(self):
     factory = RequestFactory()
     request = factory.get('/')
     request.user = self.user
     response = qrcode(
         request, self.user.username, self.xform.id_string)
     return response