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 = CleanWaterView.as_view()
     self.url = 'clean_water'
Exemplo n.º 2
0
     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(),
     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(),
 def setUp(self):
     self.run_july_third_test = True
     self.factory = RequestFactory()
     self._setup_domain_and_user()
     self.view = CleanWaterView.as_view()
     self.url = 'clean_water'
Exemplo n.º 4
0
        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'),
]

awc_infrastructure_urls = [
    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-]+)/',