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 = EnrolledChildrenView.as_view()
     self.url = 'enrolled_children'
Exemple #2
0
     InstitutionalDeliveriesView.as_view(),
     name='institutional_deliveries'),
 url(r'^immunization_coverage/(?P<step>[\w-]+)/',
     ImmunizationCoverageView.as_view(),
     name='immunization_coverage'),
 url(r'^awc_daily_status/(?P<step>[\w-]+)/',
     AWCDailyStatusView.as_view(),
     name='awc_daily_status'),
 url(r'^awcs_covered/(?P<step>[\w-]+)/',
     AWCsCoveredView.as_view(),
     name='awcs_covered'),
 url(r'^registered_household/(?P<step>[\w-]+)/',
     RegisteredHouseholdView.as_view(),
     name='registered_household'),
 url(r'^enrolled_children/(?P<step>[\w-]+)/',
     EnrolledChildrenView.as_view(),
     name='enrolled_children'),
 url(r'^enrolled_women/(?P<step>[\w-]+)/',
     EnrolledWomenView.as_view(),
     name='enrolled_women'),
 url(r'^lactating_enrolled_women/(?P<step>[\w-]+)/',
     LactatingEnrolledWomenView.as_view(),
     name='lactating_enrolled_women'),
 url(r'^adolescent_girls/(?P<step>[\w-]+)/',
     AdolescentGirlsView.as_view(),
     name='adolescent_girls'),
 url(r'^adhaar/(?P<step>[\w-]+)/',
     AdhaarBeneficiariesView.as_view(),
     name='adhaar'),
 url(r'^clean_water/(?P<step>[\w-]+)/',
     CleanWaterView.as_view(),
 def setUp(self):
     self.run_july_third_test = True
     self.factory = RequestFactory()
     self._setup_domain_and_user()
     self.view = EnrolledChildrenView.as_view()
     self.url = 'enrolled_children'
Exemple #4
0
        AWCDailyStatusView.as_view(),
        name='awc_daily_status'),
    url(
        r'^awcs_covered/(?P<step>[\w-]+)/',
        AWCsCoveredView.as_view(),
        name='awcs_covered'),
]

demographics_urls = [
    url(
        r'^registered_household/(?P<step>[\w-]+)/',
        RegisteredHouseholdView.as_view(),
        name='registered_household'),
    url(
        r'^enrolled_children/(?P<step>[\w-]+)/',
        EnrolledChildrenView.as_view(),
        name='enrolled_children'),
    url(
        r'^enrolled_women/(?P<step>[\w-]+)/',
        EnrolledWomenView.as_view(),
        name='enrolled_women'),
    url(
        r'^lactating_enrolled_women/(?P<step>[\w-]+)/',
        LactatingEnrolledWomenView.as_view(),
        name='lactating_enrolled_women'),
    url(
        r'^adolescent_girls/(?P<step>[\w-]+)/',
        AdolescentGirlsView.as_view(),
        name='adolescent_girls'),
    url(
        r'^adhaar/(?P<step>[\w-]+)/',