def setUp(self):
     self.run_july_third_test = True
     self.factory = RequestFactory()
     domain = Domain.get_or_create_with_name('icds-test')
     domain.is_active = True
     domain.save()
     user = WebUser.all().first()
     if not user:
         user = WebUser.create('icds-test', 'test', 'passwordtest')
     user.is_authenticated = True
     user.is_superuser = True
     user.is_authenticated = True
     user.is_active = True
     self.user = user
     self.view = AdultWeightScaleView.as_view()
     self.url = 'adult_weight_scale'
Example #2
0
     AdhaarBeneficiariesView.as_view(),
     name='adhaar'),
 url(r'^clean_water/(?P<step>[\w-]+)/',
     CleanWaterView.as_view(),
     name='clean_water'),
 url(r'^functional_toilet/(?P<step>[\w-]+)/',
     FunctionalToiletView.as_view(),
     name='functional_toilet'),
 url(r'^medicine_kit/(?P<step>[\w-]+)/',
     MedicineKitView.as_view(),
     name='medicine_kit'),
 url(r'^infants_weight_scale/(?P<step>[\w-]+)/',
     InfantsWeightScaleView.as_view(),
     name='infants_weight_scale'),
 url(r'^adult_weight_scale/(?P<step>[\w-]+)/',
     AdultWeightScaleView.as_view(),
     name='adult_weight_scale'),
 url(r'^aggregation_script/',
     AggregationScriptPage.as_view(),
     name=AggregationScriptPage.urlname),
 url(r'^bug_report/', ICDSBugReportView.as_view(), name='icds_bug_report'),
 url(r'^awc_locations/', AWCLocationView.as_view(), name='awc_locations'),
 url(r'^download_pdf/',
     DownloadPDFReport.as_view(),
     name='icds_download_pdf'),
 url(r'^download_excel/',
     DownloadExportReport.as_view(),
     name='icds_download_excel'),
 url(r'^issnip_pdf_status/',
     CheckExportReportStatus.as_view(),
     name='issnip_pdf_status'),
 def setUp(self):
     self.run_july_third_test = True
     self.factory = RequestFactory()
     self._setup_domain_and_user()
     self.view = AdultWeightScaleView.as_view()
     self.url = 'adult_weight_scale'
Example #4
0
        name='clean_water'),
    url(
        r'^functional_toilet/(?P<step>[\w-]+)/',
        FunctionalToiletView.as_view(),
        name='functional_toilet'),
    url(
        r'^medicine_kit/(?P<step>[\w-]+)/',
        MedicineKitView.as_view(),
        name='medicine_kit'),
    url(
        r'^infants_weight_scale/(?P<step>[\w-]+)/',
        InfantsWeightScaleView.as_view(),
        name='infants_weight_scale'),
    url(
        r'^adult_weight_scale/(?P<step>[\w-]+)/',
        AdultWeightScaleView.as_view(),
        name='adult_weight_scale'),
]

urlpatterns = [
    url(r'^tableau/(?P<workbook>\w+)/(?P<worksheet>\w+)$', TableauView.as_view(), name='icds_tableau'),
    url(r'^icds_dashboard/', include(dashboardurls)),
    url(r'^icds-ng-template/(?P<template>[\w-].+)', IcdsDynamicTemplateView.as_view(), name='icds-ng-template'),
    url(r'^program_summary/(?P<step>[\w-]+)/', ProgramSummaryView.as_view(), name='program_summary'),
    url(r'^lady_supervisor/', LadySupervisorView.as_view(), name='lady_supervisor'),
    url(
        r'^service_delivery_dashboard/',
        ServiceDeliveryDashboardView.as_view(),
        name='service_delivery_dashboard'
    ),
    url(r'^maternal_and_child/', include(maternal_and_child_urls)),