1 # -*- coding: utf-8 -*-
3 from auf
.django
.references
import models
as ref
4 from auf
.django
.emploi
.models
import OffreEmploi
, Candidat
5 from project
.rh
.test
.common
import RhTest
7 class RecrutementTest(RhTest
):
13 self.offre_cnf_ngaoundere
17 self.canditat_cnf_ngaoundere
19 super(RecrutementTest
, self
).setUp()
21 self
.offre_cnf_ngaoundere
= OffreEmploi(nom
=u
"Offre CNF ngaoundere",
22 region
=self
.REGION_ACGL
,
23 lieu_affectation
=self
.IMPLANTATION_ACGL_CNF_NGAOUNDERE
,
24 date_limite
=self
.tomorrow
,
25 debut_affectation
=self
.tomorrow
,
26 bureau
=ref
.Bureau
.objects
.get(region
=self
.IMPLANTATION_ACGL_CNF_NGAOUNDERE
.region
),
28 self
.offre_cnf_ngaoundere
.save()
30 self
.candidat_cnf_ngaoundere
= Candidat(
34 nationalite
=ref
.Pays
.objects
.get(code
='FR'),
35 pays
=ref
.Pays
.objects
.get(code
='CA'),
36 offre_emploi
=self
.offre_cnf_ngaoundere
,
39 self
.candidat_cnf_ngaoundere
.save()