def setUp(self): self.run_july_third_test = False 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 = AwcReportsView.as_view() self.url = 'awc_reports'
url('^', DashboardView.as_view(), name='icds_dashboard') ] 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'^awc_reports/(?P<step>[\w-]+)/', AwcReportsView.as_view(), name='awc_reports'), url(r'^underweight_children/(?P<step>[\w-]+)/', PrevalenceOfUndernutritionView.as_view(), name='underweight_children'), url(r'^prevalence_of_severe/(?P<step>[\w-]+)/', PrevalenceOfSevereView.as_view(), name='prevalence_of_severe'), url(r'^prevalence_of_stunting/(?P<step>[\w-]+)/', PrevalenceOfStuntingView.as_view(), name='prevalence_of_stunting'), url(r'^low_birth/(?P<step>[\w-]+)/', NewbornsWithLowBirthWeightView.as_view(), name='low_birth'), url(r'^early_initiation/(?P<step>[\w-]+)/', EarlyInitiationBreastfeeding.as_view(),
), url( r'^poshan_progress_dashboard/(?P<step>[\w-]+)/', PoshanProgressDashboardView.as_view(), name='poshan_progress_dashboard' ), url( r'^service_delivery_dashboard_details/(?P<step>[\w-]+)/', ServiceDeliveryDashboardDetailsView.as_view(), name='service_delivery_dashboard_details' ), url(r'^maternal_and_child/', include(maternal_and_child_urls)), url(r'^icds_cas_reach/', include(cas_reach_urls)), url(r'^demographics/', include(demographics_urls)), url(r'^awc_infrastructure/', include(awc_infrastructure_urls)), url(r'^awc_reports/(?P<step>[\w-]+)/', AwcReportsView.as_view(), name='awc_reports'), url(r'^locations$', LocationView.as_view(), name='icds_locations'), url(r'^locations/ancestors$', LocationAncestorsView.as_view(), name='icds_locations_ancestors'), url(r'^topojson$', TopoJsonView.as_view(), name='topojson'), url(r'^icds_export_indicator$', ExportIndicatorView.as_view(), name='icds_export_indicator'), url(r'^fact_sheets$', FactSheetsView.as_view(), name='fact_sheets'), url(r'^aggregation_script/', AggregationScriptPage.as_view(), name=AggregationScriptPage.urlname), url(r'^awc_locations/', AWCLocationView.as_view(), name='awc_locations'), url(r'^icds_download_pdf/', DownloadPDFReport.as_view(), name='icds_download_pdf'), url(r'^icds_download_excel/', DownloadExportReport.as_view(), name='icds_download_excel'), url(r'^issnip_pdf_status/', CheckExportReportStatus.as_view(), name='issnip_pdf_status'), url(r'^have_access_to_location/', HaveAccessToLocation.as_view(), name='have_access_to_location'), url(r'^inactive_aww', InactiveAWW.as_view(), name='inactive_aww'), url(r'^inactive_dashboard_users', InactiveDashboardUsers.as_view(), name='inactive_dashboard_users'), url(r'^health_indicators', DishaAPIView.as_view(), name='disha_api'), url(r'^nic_indicators', NICIndicatorAPIView.as_view(), name='nic_indicator_api'),
def setUp(self): self.run_july_third_test = False self.factory = RequestFactory() self._setup_domain_and_user() self.view = AwcReportsView.as_view() self.url = 'awc_reports'
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)), url(r'^icds_cas_reach/', include(cas_reach_urls)), url(r'^demographics/', include(demographics_urls)), url(r'^awc_infrastructure/', include(awc_infrastructure_urls)), url(r'^awc_reports/(?P<step>[\w-]+)/', AwcReportsView.as_view(), name='awc_reports'), url(r'^locations$', LocationView.as_view(), name='icds_locations'), url(r'^locations/ancestors$', LocationAncestorsView.as_view(), name='icds_locations_ancestors'), url(r'^export_indicator$', ExportIndicatorView.as_view(), name='icds_export_indicator'), url(r'^fact_sheets$', FactSheetsView.as_view(), name='fact_sheets'), 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'), url(r'^have_access_to_location/', HaveAccessToLocation.as_view(), name='have_access_to_location'), url(r'^inactive_aww', InactiveAWW.as_view(), name='inactive_aww'), url(r'^inactive_dashboard_users', InactiveDashboardUsers.as_view(), name='inactive_aww'), url(r'^health_indicators', DishaAPIView.as_view(), name='disha_api'), url(r'^cas_export', CasDataExport.as_view(), name='cas_export'),